Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
admin
/
storage
/
logs
/
Filename :
laravel.log.bak-20240722
back
Copy
[2024-05-03 05:39:06] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.gosiya.pro@gmail.com","name":"kartik pro"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik pro,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">04105<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-03 05:39:07] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-03 06:20:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 06:20:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 06:20:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 06:20:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 06:20:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 06:20:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 06:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 06:29:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 06:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 06:29:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 06:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 06:29:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-03 09:25:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 09:25:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 09:25:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 09:25:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 09:25:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 09:25:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 13:13:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 13:13:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 13:13:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 13:13:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 13:13:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 13:13:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 13:14:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-06' and `tasks`.`due_by` > '2024-05-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-03 13:14:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-03 13:14:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-03 13:14:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-03 13:14:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-03 14:10:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:10:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 14:10:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:10:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 14:10:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:10:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 14:49:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:49:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 14:49:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:49:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 14:49:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:49:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 14:50:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-03 14:50:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-03 14:50:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 14:50:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 14:50:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 14:50:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-03 14:50:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:50:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 14:50:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:50:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 14:50:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 14:50:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:04:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:04:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:04:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:04:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:04:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:04:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:04:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-03 19:04:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-03 19:04:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:04:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:04:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:04:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:04:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:04:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 19:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 19:41:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-03 19:41:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-03 20:30:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 20:30:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-03 20:30:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-03 20:30:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 20:30:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 20:30:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-03 20:30:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-03 20:30:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 01:28:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 01:28:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 01:28:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 01:28:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 01:28:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 01:28:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 01:51:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 01:51:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 01:51:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 01:51:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 01:51:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 01:51:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 01:52:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-04 01:52:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-04 02:25:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:25:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:25:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:25:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:25:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:25:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:27:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-04 02:27:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-04 02:31:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:31:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:31:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-04 02:31:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:31:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:31:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:31:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-04 02:31:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:32:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-07' and `tasks`.`due_by` > '2024-05-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-04 02:32:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-05-04 02:34:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:34:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:34:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:34:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:34:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:34:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:34:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-07' and `tasks`.`due_by` > '2024-05-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-04 02:34:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-04 02:34:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-04 02:34:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-04 02:36:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:36:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:36:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:36:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:36:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:36:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:37:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-07' and `tasks`.`due_by` > '2024-05-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-04 02:37:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-04 02:37:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-04 02:37:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-04 02:38:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:38:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:38:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:38:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:38:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:38:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:40:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:40:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:40:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:40:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:40:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:40:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:42:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:42:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:42:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:42:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:42:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:42:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:43:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:43:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 02:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 02:43:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 03:03:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 03:03:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 03:03:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 03:03:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 03:03:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 03:03:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 04:31:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 04:31:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 04:31:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 04:31:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 04:31:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 04:31:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 04:31:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 04:31:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 04:31:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 04:31:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 04:31:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 04:31:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 06:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 06:00:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 06:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 06:00:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 06:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 06:00:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-04 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'store_id' cannot be null (SQL: insert into `products` (`parent_product_id`, `product_type`, `group_id`, `product_category_id`, `product_name`, `description`, `product_image`, `product_sp`, `expires_on`, `is_featured`, `latitude`, `longitude`, `status`, `app_share_link`, `android_share_link`, `ios_share_link`, `created_by`, `deleted_at`, `created_at`, `updated_at`) values (201, REWARD, ?, 1, Skyhawk Model - Global, Skyhawk Model - Global, 17666028911712300185.png, 100, 2024-04-04, 0, ?, ?, ACTIVE, ?, ?, ?, ?, ?, 2024-05-04 07:05:02, 2024-05-04 07:05:02)) [2024-05-04 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/Product.php(253): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(432): App\Models\Product->cloneProduct() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-05-04 12:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 12:35:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 12:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 12:35:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 12:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 12:35:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 16:56:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 16:56:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 16:56:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 16:56:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 16:56:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 16:56:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 16:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-04 16:56:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 16:56:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 16:56:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 16:56:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 16:56:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 16:56:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 16:58:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-04 16:58:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-04 19:30:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 19:30:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 19:30:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 19:30:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 19:30:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 19:30:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 19:31:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 19:31:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 19:31:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 19:31:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 19:31:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 19:31:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 20:04:01] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"marksho777@gmail.com","name":"Mark Sho"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>99707<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-04 20:04:02] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-04 20:05:44] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"doggymrk@gmail.com","name":"mark sho"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello mark sho,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">32310<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-04 20:05:45] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-04 21:41:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-04 21:41:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-04 21:41:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-04 21:41:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:09:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:09:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:09:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:09:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:09:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:09:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:09:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:09:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:09:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:09:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:09:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:09:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:13:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:13:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:13:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:13:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:13:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:13:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:13:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:13:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:13:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:13:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:13:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:13:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:13:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-08' and `tasks`.`due_by` > '2024-05-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-05 00:13:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-05 00:13:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-05 00:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 00:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 00:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 01:36:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 01:36:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 01:36:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 01:36:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 01:36:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 01:36:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 01:39:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 01:39:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 01:39:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 01:39:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 01:39:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 01:39:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-05 14:08:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 14:08:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 14:08:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 14:08:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 14:08:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 14:08:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 14:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 14:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 14:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 14:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 14:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 14:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 14:08:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 14:08:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 14:08:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 14:08:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 14:08:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 14:08:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 17:27:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 17:27:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 17:27:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 17:27:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 17:27:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 17:27:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 19:51:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 19:51:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 19:51:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 19:51:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 19:51:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 19:51:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 19:51:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-05 19:51:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 19:51:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 19:51:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 19:51:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 19:51:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 19:51:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 19:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-05 19:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 19:51:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 19:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 19:51:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 19:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 19:51:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 19:51:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-05 19:51:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-05 22:12:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-05 22:14:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-05 22:15:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-05 22:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 22:16:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 22:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 22:16:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 22:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 22:16:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 22:16:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 22:16:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 22:16:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 22:16:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 22:16:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-05 22:16:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-05 22:16:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-05 22:16:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-06 07:05:01] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-06 10:19:39] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kag.verhoeven@student.avans.nl","name":"Kobe Verhoeven"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kobe Verhoeven,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">73892<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-06 10:19:39] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-06 10:20:01] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"m.vanleeuwen4@student.avans.nl","name":"Milan van Leeuwen"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Milan van Leeuwen,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">52265<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-06 10:20:02] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-06 14:54:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 14:54:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 14:54:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 14:54:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 14:54:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 14:54:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 14:54:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 14:54:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 14:54:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 14:54:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 14:54:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 14:54:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 14:54:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:54:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:54:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 14:55:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 17:07:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:07:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:07:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:07:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:07:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:07:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:08:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 17:08:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:08:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:08:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:08:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:08:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:08:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:09:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:09:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:09:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:09:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:09:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:09:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:09:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:09:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:09:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:09:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:09:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:09:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:10:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-06 17:10:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-06 17:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 17:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 17:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 17:57:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:06:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:06:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:06:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:06:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:06:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:06:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:08:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:08:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:08:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:08:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:08:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:08:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:09:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-06 18:09:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:09:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:09:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:09:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:09:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:09:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:09:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:09:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:09:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:09:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:09:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:09:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:09:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-06 18:09:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:09:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:09:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:09:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:09:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:09:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:10:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:10:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:10:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:10:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:11:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-06 18:11:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-06 18:11:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:11:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:11:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:11:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:11:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:11:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:11:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:11:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:11:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:11:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:11:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:11:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:11:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:11:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:11:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:11:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:11:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:11:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:11:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:11:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:11:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:12:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:12:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:12:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:12:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:12:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:12:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:13:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-06 18:13:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:13:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-06 18:13:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:13:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-06 18:13:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:13:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-06 18:13:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:13:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-06 18:14:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:14:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:14:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:14:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:14:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:14:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:16:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:16:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:16:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-06 18:16:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:17:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:17:03] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(131): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-06 18:17:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-06 18:17:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-06' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-05-06 18:22:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:22:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:22:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:22:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:22:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:22:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:22:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:22:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:22:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:22:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:22:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:22:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:44:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:44:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:44:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:44:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:44:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:44:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:44:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-06 18:44:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-06 18:44:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:44:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:44:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:45:53] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"udukings904@gmail.com","name":"udukings904@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello udukings904@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"udukhagele\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: udukhagele<\\/li>\\n <li>Invited By: otoikhila udukhagele kingsley<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-06 18:45:53] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-06 18:45:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:45:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:45:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:45:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:45:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:45:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:46:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:46:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:46:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:46:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:46:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 18:46:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 18:46:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:46:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 18:46:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 22:13:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 22:13:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 22:13:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 22:13:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 22:13:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 22:13:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 22:13:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-06 22:13:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 22:13:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-06 22:13:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 22:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-06 22:13:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 22:14:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-06 22:14:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-06 22:14:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-06 22:14:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 22:14:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-06 22:14:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-06 22:14:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-06 22:15:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-09' and `tasks`.`due_by` > '2024-05-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 22:15:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 22:15:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-06 22:15:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-06 22:15:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-06 22:15:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-06 22:15:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-06 22:16:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 22:16:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 22:16:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 22:16:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-06 22:16:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-06 22:16:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 02:49:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 02:49:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 02:49:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 02:49:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 02:49:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 02:49:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 02:49:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 02:49:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 02:49:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 02:49:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 02:49:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 02:49:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:17:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:17:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:17:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:17:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:17:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:17:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:18:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 03:18:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 03:18:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:18:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:18:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:18:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:18:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:18:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 03:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 03:18:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:18:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:18:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:18:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 03:18:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 03:18:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 04:52:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 04:52:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 04:52:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 04:52:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 04:52:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 04:52:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 04:59:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 04:59:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 04:59:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 04:59:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 04:59:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 04:59:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 04:59:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 04:59:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 04:59:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 04:59:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 04:59:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 04:59:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:00:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:00:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:00:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:00:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:00:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:00:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:00:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:00:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:00:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:01:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:01:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:01:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:01:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:01:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:01:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:01:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:01:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:01:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:03:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:03:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:03:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:03:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:03:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:03:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:50:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:50:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:50:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:50:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:50:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:50:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:50:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:50:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:50:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:50:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:50:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:50:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:50:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:50:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:50:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:52:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:52:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:52:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:52:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:52:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:52:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:52:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 05:52:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:52:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:52:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:52:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:52:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:52:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:52:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:52:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:52:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-07 05:52:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:52:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-07 05:52:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-07 05:52:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:52:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:52:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-07 05:52:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:52:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-07 05:52:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-07 05:52:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:52:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-07 05:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:52:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 05:52:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:52:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-07 05:52:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 05:52:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-07 05:52:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-07 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-07 07:25:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 07:25:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 07:25:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 07:25:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 07:25:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 07:25:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 07:25:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:25:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:25:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:25:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:25:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:25:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:25:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:25:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:25:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:25:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:25:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:26:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 07:26:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 07:26:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 07:26:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 07:26:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 07:26:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 07:26:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:26:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:26:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:26:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:26:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:26:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:26:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:26:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:26:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-07 07:26:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:26:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 07:26:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 09:45:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:45:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 09:45:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:45:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 09:45:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:45:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 09:46:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:46:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 09:46:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:46:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 09:46:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:46:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 09:48:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:48:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 09:48:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:48:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 09:48:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:48:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 09:51:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:51:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 09:51:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:51:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 09:51:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 09:51:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:00:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:00:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:00:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:00:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:00:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:00:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:01:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:01:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:01:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:01:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:01:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:01:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:02:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:02:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:02:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:02:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:02:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:02:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:13:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:13:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:13:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:17:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:17:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:17:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:17:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:17:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:17:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:31:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:31:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:31:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:31:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:31:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:31:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:43:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-07 10:43:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-07 10:43:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:43:17] local.DEBUG: task visible_to: [2024-05-07 10:43:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:43:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:43:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:43:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:43:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:43:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:43:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:43:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:43:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:43:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:43:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-07 10:44:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:44:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:44:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-07 10:44:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:44:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:44:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:44:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:44:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-07 10:44:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:44:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:44:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-07 10:44:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:44:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:44:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-07 10:44:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 10:54:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:54:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:54:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:54:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 10:54:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 10:54:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 11:04:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 11:04:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 11:04:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 11:04:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 11:04:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 11:04:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 11:12:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 11:12:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 11:12:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 11:12:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 11:12:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 11:12:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 11:58:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 11:58:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 11:58:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 11:58:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 11:58:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 11:58:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:01:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:01:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:01:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-07 12:01:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:01:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-07 12:01:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-07 12:01:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-07 12:01:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-07 12:01:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:01:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:01:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-07 12:01:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:01:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:01:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:01:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-07 12:01:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:02:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:02:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:02:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:02:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:02:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:02:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:07:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:07:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:07:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:07:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:07:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:07:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:07:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:07:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:07:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:07:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:07:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:07:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:07:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:07:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:08:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:09:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:09:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:10:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:10:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:10:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:10:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:10:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:10:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:10:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:10:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:11:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:11:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:11:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-07 12:11:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:11:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:13:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:13:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:13:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:13:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:14:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:14:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:14:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:14:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:14:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:14:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:14:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:14:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:14:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:14:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:14:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:14:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:14:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:14:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:14:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:14:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:14:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:14:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:25:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:25:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:25:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:25:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:25:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:25:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:28:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:28:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:28:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:28:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:28:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:28:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:28:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:28:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:28:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-07 12:28:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:28:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:28:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:28:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:29:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:29:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:29:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:29:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:29:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:29:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:31:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:31:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:31:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:31:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:31:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:31:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:31:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:31:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:31:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:31:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:31:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-07 12:31:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:31:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:31:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:31:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:31:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:31:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:31:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:31:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:31:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:31:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:31:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-07 12:32:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:32:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-07 12:33:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:33:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:33:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:33:13] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-07 12:33:13] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:33:13] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-07 12:33:13] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 87 [2024-05-07 12:33:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:33:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-07 12:33:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:33:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:33:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:33:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:33:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:33:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:33:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-07 12:33:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-07 12:33:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:33:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:33:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:33:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:34:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:34:00] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 87 [2024-05-07 12:34:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:34:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:34:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:34:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:34:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:34:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:34:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:34:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:34:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:34:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:34:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:34:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:34:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:34:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:34:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:34:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:34:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:34:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:34:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:34:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:34:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-07 12:34:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:34:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:34:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:34:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:39:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:39:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:39:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:39:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:39:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:39:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:39:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:39:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:39:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:39:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:39:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:39:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:39:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:43:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:43:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:43:15] local.DEBUG: Token: [2024-05-07 12:43:15] local.DEBUG: curl options:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:43:15] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-07 12:43:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:43:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:43:26] local.DEBUG: Token: [2024-05-07 12:43:26] local.DEBUG: curl options:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:43:26] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-07 12:43:26] local.DEBUG: Token: [2024-05-07 12:43:26] local.DEBUG: curl options:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.gosiya.pro.old@gmail.com","name":"Dhara"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dhara,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:43:26] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-07 12:43:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:50:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:50:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:50:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:50:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:50:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:50:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:50:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:50:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:50:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-07 12:50:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:50:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-07 12:50:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:50:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:50:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:50:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:50:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:50:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-07 12:50:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:50:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:52:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:52:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:52:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:52:07] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:52:07] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-07 12:52:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:52:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:52:24] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:52:25] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-07 12:52:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.gosiya.pro.old@gmail.com","name":"Dhara"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dhara,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:52:25] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-07 12:52:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:53:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:53:30] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:53:30] local.ERROR: failure in sending email: array ( 'code' => 'TM_3201', 'details' => array ( 0 => array ( 'code' => 'GE_102', 'message' => 'Mandatory field found empty', 'target' => 'from', ), ), 'message' => 'Mandatory Field missing', 'request_id' => '2d6f.4d0414f5faee03b5.m1.ce47d7e0-0c70-11ef-8729-525400d4bb1c.18f531dc45e', ) [2024-05-07 12:53:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:53:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:53:43] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:53:43] local.ERROR: failure in sending email: array ( 'code' => 'TM_3201', 'details' => array ( 0 => array ( 'code' => 'GE_102', 'message' => 'Mandatory field found empty', 'target' => 'from', ), ), 'message' => 'Mandatory Field missing', 'request_id' => '2d6f.4d0414f5faee03b5.m1.d5c3e3b0-0c70-11ef-8106-5254004d4100.18f531df56b', ) [2024-05-07 12:53:43] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"kartik.gosiya.pro.old@gmail.com","name":"Dhara"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dhara,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:53:43] local.ERROR: failure in sending email: array ( 'code' => 'TM_3201', 'details' => array ( 0 => array ( 'code' => 'GE_102', 'message' => 'Mandatory field found empty', 'target' => 'from', ), ), 'message' => 'Mandatory Field missing', 'request_id' => '2d6f.4d0414f5faee03b5.m1.d5f09900-0c70-11ef-9b0d-525400fa05f6.18f531df690', ) [2024-05-07 12:53:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:54:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:54:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:54:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:54:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:54:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:54:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:54:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:54:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:54:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-07 12:54:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:54:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:54:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:54:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:54:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:54:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:54:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:54:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:54:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:54:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:54:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:54:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:54:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:54:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:54:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:54:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:54:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:54:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:54:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:54:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:55:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:55:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:55:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:55:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:55:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:55:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:55:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:55:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:55:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-07 12:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-07 12:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-10' and `tasks`.`due_by` > '2024-05-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:55:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:55:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:55:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:55:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:55:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 12:55:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 12:58:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:58:37] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:58:37] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.84f7ba00-0c71-11ef-9b0d-525400fa05f6.18f532271a0","object":"email"} [2024-05-07 12:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:58:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 12:58:42] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:58:42] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.88400730-0c71-11ef-9298-525400103106.18f53228723","object":"email"} [2024-05-07 12:58:42] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.gosiya.pro.old@gmail.com","name":"Dhara"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dhara,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task for tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-07 12:58:43] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.886e9140-0c71-11ef-8e35-525400ae9113.18f53228854","object":"email"} [2024-05-07 12:58:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-07 22:11:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-07 22:11:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-07 22:11:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-07 22:11:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 00:32:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 00:32:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 00:32:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 00:32:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 00:32:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 00:32:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 00:33:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-11' and `tasks`.`due_by` > '2024-05-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 00:33:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 00:33:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 00:33:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 00:33:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 00:33:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 00:33:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 00:33:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 00:33:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 00:33:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 00:33:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 00:33:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 00:33:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 00:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 00:33:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 00:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 00:33:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 00:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 00:33:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 06:59:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 06:59:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 06:59:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 06:59:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 06:59:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 06:59:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 07:02:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 07:02:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 07:02:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 07:02:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 07:02:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 07:02:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-08 07:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 07:05:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 07:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 07:05:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 07:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 07:05:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 08:59:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 08:59:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 08:59:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 08:59:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 08:59:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 08:59:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 08:59:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 08:59:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 08:59:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 08:59:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 08:59:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 08:59:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 09:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 09:04:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 09:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 09:04:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 09:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 09:04:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 09:06:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 09:06:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 09:06:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 09:06:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 09:06:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 09:06:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 09:09:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 09:09:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 09:09:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 09:09:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 09:09:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 09:09:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 10:49:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 10:49:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 10:49:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 10:49:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 10:49:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 10:49:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 11:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 11:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 11:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 11:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 11:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 11:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 11:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 11:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 11:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 11:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 11:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 11:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:02:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:02:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:02:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:02:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:02:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:02:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:18:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:18:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:18:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:18:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:18:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:18:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:18:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-11' and `tasks`.`due_by` > '2024-05-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 12:18:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 12:18:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 12:18:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 12:18:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-11' and `tasks`.`due_by` > '2024-05-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 12:18:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 12:18:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 12:18:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 12:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:18:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-08 12:18:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-08 12:19:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:19:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:19:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-08 12:19:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:19:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-08 12:19:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-08 12:19:31] local.DEBUG: Current Balance: 50 [2024-05-08 12:19:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-11' and `tasks`.`due_by` > '2024-05-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-08 12:19:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-08 12:56:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:56:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:56:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:56:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 12:56:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 12:56:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 17:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 17:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 17:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 17:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 17:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 17:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 17:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 17:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 17:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 17:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 17:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 17:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:11:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:11:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:11:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:11:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:11:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:11:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:12:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:12:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:12:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:12:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:12:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:12:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:12:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:12:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:12:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:12:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:12:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:12:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:12:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:12:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:12:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:13:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:13:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:13:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-08 18:13:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-08 18:13:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-08 18:13:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-08 18:13:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-11' and `tasks`.`due_by` > '2024-05-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:13:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:13:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-08 18:13:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-08 18:14:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-08 18:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-08 18:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-08 18:15:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:15:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:15:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:15:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:16:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:16:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:16:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:16:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:16:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:16:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:16:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:16:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:16:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:16:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:16:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:16:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:16:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:16:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:16:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:16:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:16:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:16:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:16:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:16:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:16:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:16:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:16:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:16:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:17:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:17:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:17:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:17:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:17:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:17:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:17:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:17:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:17:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:17:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:17:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:17:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-08 18:17:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-08 18:17:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:17:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:17:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:17:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:17:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:17:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:17:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:17:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:17:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:18:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-08 18:18:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-08 18:18:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:18:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:18:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:18:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:18:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-08 18:18:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-08 18:18:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:18:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:18:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:18:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:18:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:18:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:18:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:18:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 18:19:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-08 18:19:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:19:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:19:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:19:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:19:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:19:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 18:19:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:20:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:20:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:20:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:20:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:20:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:20:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:20:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:20:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:20:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:20:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 18:20:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 18:20:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:35:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:35:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:35:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:35:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:35:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:35:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-11' and `tasks`.`due_by` > '2024-05-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 19:37:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 19:37:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-08 19:37:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 19:37:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 19:37:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 19:37:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 19:37:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 19:37:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 19:37:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 19:37:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 19:37:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 19:37:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:37:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-08 19:37:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-08 19:38:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 19:38:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 19:38:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-08 22:06:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 22:06:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 22:06:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 22:06:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-08 22:06:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-08 22:06:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 01:24:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 01:24:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 01:24:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 01:24:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 01:24:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 01:24:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:18:55] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ordinarymatt265@gmail.com","name":"Jevon Putnam"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jevon Putnam,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">81234<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-09 02:18:56] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7cd9e1b0-0daa-11ef-92f5-5254000b1a0e.18f5b25834b","object":"email"} [2024-05-09 02:19:22] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 305 [2024-05-09 02:19:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:19:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:19:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:19:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:19:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:19:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:20:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:20:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:20:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:20:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:20:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:20:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:22:07] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ordinarydoor2@gmail.com","name":"ordinarydoor2@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello ordinarydoor2@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Jevon Putnam<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-09 02:22:08] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ef3760c1-0daa-11ef-a100-525400fa05f6.18f5b2870ca","object":"email"} [2024-05-09 02:30:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:30:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:30:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:30:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:30:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:30:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:30:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:30:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:30:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:30:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:30:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-09 02:32:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:32:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:32:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:32:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:32:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:32:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:32:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:32:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:32:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:32:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:32:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:32:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:34:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:34:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:34:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:34:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:34:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:34:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:34:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:34:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:34:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:34:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:34:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:34:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:34:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:34:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:34:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:34:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:34:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:34:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:34:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:34:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:34:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:35:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:35:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:35:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:35:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:35:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:35:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:35:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:35:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:35:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 02:56:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:56:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:56:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:56:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:56:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:56:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:57:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:57:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:57:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:57:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:57:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:57:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:58:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:58:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:58:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:58:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 02:58:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 02:58:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:00:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:00:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:00:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:00:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:00:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:00:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:00:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:00:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:00:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:00:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:00:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:00:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:00:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:00:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:00:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:00:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:01:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:01:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:01:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:01:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:01:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:01:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:01:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:01:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:01:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:01:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:02:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:02:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:39:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:39:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:39:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:39:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:39:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:39:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:40:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:40:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:40:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:40:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:40:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:40:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:40:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-09 03:40:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:40:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:40:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:40:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:40:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:40:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:40:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:40:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-09 03:40:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:40:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:40:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:40:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:40:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:40:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:40:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:41:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-09 03:41:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-09 03:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:41:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:41:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:41:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:41:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:41:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:41:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:41:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-09 03:41:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:41:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:41:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:41:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:41:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:41:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:41:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:44:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:44:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:44:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:44:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:44:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 03:44:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 03:45:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:45:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:45:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:46:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:46:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:46:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 03:46:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 05:45:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 05:45:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 05:45:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 05:45:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 05:45:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 05:45:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 06:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 06:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 06:13:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 06:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 06:13:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 06:13:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 06:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 06:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 06:13:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 06:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 06:13:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 06:13:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 06:13:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 06:13:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 06:13:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 06:14:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 06:55:30] local.ERROR: error while retriving price from dextools [2024-05-09 06:55:30] local.ERROR: could not get price from dextools [2024-05-09 06:55:30] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TUITService.php(150): App\V2\Services\TUITService->getPrice() #1 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ParentController.php(843): App\V2\Services\TUITService->getTUIT_To_USDT() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->getTUITDashboardForApp() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #40 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #41 {main} [2024-05-09 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-09 12:16:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:16:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:16:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:16:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:16:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-09 12:16:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-09 12:16:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:16:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:20:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-09 12:20:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-09 12:20:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:20:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:20:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-09 12:20:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:20:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:20:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:20:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:20:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:20:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:20:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:21:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 12:21:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 12:21:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 12:21:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 12:21:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:21:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:21:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:21:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:21:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:21:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:28:56] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.gosiya.pro@gmail.com","name":"kartik g"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik g,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">68111<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-09 12:28:56] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b49463a0-0dff-11ef-a1ab-525400f92481.18f5d53feda","object":"email"} [2024-05-09 12:29:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:29:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:29:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:29:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:29:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:29:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:39:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:39:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:39:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-09 12:39:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:39:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-09 12:39:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-09 12:39:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 12:39:30] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-09 12:40:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-09 12:40:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-09 12:46:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:46:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:46:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-09 12:46:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:46:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-09 12:46:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-09 12:47:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 12:47:43] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-09 12:47:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-09 12:47:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-09 12:47:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 12:47:49] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-09 12:47:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-09 12:47:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-09 12:48:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 12:48:38] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-09 12:48:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-09 12:48:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-09 12:49:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 12:49:43] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-09 12:50:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:50:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:50:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-09 12:50:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:50:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-09 12:50:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-05-09 12:50:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 12:50:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:50:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-09 12:50:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 12:50:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 12:50:35] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-09 13:19:44] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"delgado609mariah@yahoo.com","name":"Mariah"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Mariah,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">10409<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-09 13:19:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cd553200-0e06-11ef-812f-525400d4bb1c.18f5d828120","object":"email"} [2024-05-09 13:20:10] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 308 [2024-05-09 13:21:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:21:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 13:21:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:21:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 13:21:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:21:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 13:21:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 13:21:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 13:21:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 13:22:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:22:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 13:22:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:22:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 13:22:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:22:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 13:22:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-09 13:22:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-09 13:22:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:22:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 13:22:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:22:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 13:22:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:22:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 13:22:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:22:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 13:22:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:22:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 13:22:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 13:22:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 14:40:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 14:40:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 14:40:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 14:40:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 14:40:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 14:40:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-09 14:40:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 14:40:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-09 14:40:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-09 14:40:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 14:40:27] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-09 14:40:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-09 14:40:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-09 14:40:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-09 14:40:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-09 14:41:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 14:41:00] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-09 14:41:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 14:41:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 14:41:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 14:41:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 14:41:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 14:41:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 14:41:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-09 14:42:26] local.DEBUG: Product Image Details: Array ( [product_id] => 260 [image_name] => 2624787611715265746.png ) [2024-05-09 14:42:26] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 110 [2024-05-09 14:42:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-09 14:42:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 14:42:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 14:42:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 14:42:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 14:42:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 14:42:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 14:42:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-09 14:42:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-09 14:42:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-09 14:42:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-09 14:42:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-09 14:42:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-09 14:42:55] local.DEBUG: Product Image Details: Array ( [product_id] => 260 [image_name] => 3643380271715265775.png ) [2024-05-09 14:42:55] local.DEBUG: Product Image Details: Array ( [product_id] => 260 [image_name] => 2362541471715265775.png ) [2024-05-09 14:42:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-09 14:42:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-09 15:56:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 15:56:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 15:56:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-09 15:56:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 18:56:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 18:56:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 18:56:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 18:56:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 18:56:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 18:56:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 22:00:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 22:00:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 22:00:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 22:00:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 22:00:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 22:00:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 22:00:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 22:00:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 22:00:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 22:11:36] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ryan@diversifiedrealtors.com","name":"ryan"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello ryan,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">47364<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-09 22:11:36] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1a4c1bb0-0e51-11ef-b1db-5254004d4100.18f5f6970eb","object":"email"} [2024-05-09 22:11:59] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 309 [2024-05-09 22:13:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 22:13:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 22:13:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 22:13:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 22:13:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 22:13:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 22:14:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-12' and `tasks`.`due_by` > '2024-05-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 22:14:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 22:14:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-09 22:14:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 22:14:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 22:14:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 22:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-09 22:14:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-09 22:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 00:28:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 00:28:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 00:28:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-10 00:28:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 00:28:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-13' and `tasks`.`due_by` > '2024-05-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-10 00:28:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-10' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-05-10 06:54:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 06:54:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 06:54:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 06:54:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 06:54:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 06:54:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 06:55:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 06:55:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 06:55:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 06:55:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 06:55:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 06:55:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 07:05:01] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-10 08:51:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 08:51:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 08:51:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 08:51:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 08:51:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 08:51:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:13:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:13:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:13:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:13:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:13:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:13:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-10 09:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:18:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:18:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:18:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:18:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:18:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:18:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:38:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:38:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:38:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:38:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:38:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:38:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:44:04] local.DEBUG: combining groups [2024-05-10 09:48:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:48:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:48:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:48:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:48:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:48:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:49:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:49:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:49:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:55:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:55:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:55:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:55:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:55:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:55:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:58:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:58:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:58:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:58:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:58:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:58:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:59:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:59:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:59:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:59:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 09:59:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 09:59:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:00:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:00:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:00:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:45:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:45:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:45:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:45:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:45:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:45:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:49:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:49:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:49:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:49:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:49:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:49:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:49:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-13' and `tasks`.`due_by` > '2024-05-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-10 10:49:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-10 10:49:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-10 10:50:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-10 10:50:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-13' and `tasks`.`due_by` > '2024-05-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-10 10:50:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-10 10:50:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-10 10:50:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:50:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:50:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:50:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:50:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:50:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:50:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-10 10:50:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-10 10:51:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:51:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:51:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:51:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:51:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-10 10:51:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-10 10:53:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-13' and `tasks`.`due_by` > '2024-05-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-10 10:53:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-10 10:53:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-10 11:14:02] local.DEBUG: combining groups [2024-05-10 11:18:03] local.DEBUG: combining groups [2024-05-10 11:31:13] local.DEBUG: combining groups [2024-05-10 12:10:56] local.DEBUG: combining groups [2024-05-10 12:14:19] local.DEBUG: combining groups [2024-05-10 12:17:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New test task for earning tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-10 12:17:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.434375b0-0ec7-11ef-9aa1-525400103106.18f626fd08b","object":"email"} [2024-05-10 12:17:26] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New test task for earning tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-10 12:17:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.43758230-0ec7-11ef-9aa1-525400103106.18f626fd1d3","object":"email"} [2024-05-10 12:17:26] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 30 [2024-05-10 12:17:57] local.DEBUG: Product Image Details: Array ( [product_id] => 261 [image_name] => 15945493271715343477.png ) [2024-05-10 12:17:57] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 30 [2024-05-10 12:18:04] local.DEBUG: combining groups [2024-05-10 12:19:09] local.DEBUG: combining groups [2024-05-10 12:27:49] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"parcel@gmail.com","name":"Small Parcel"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Small Parcel,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">50761<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-10 12:27:49] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b6bf8eb0-0ec8-11ef-beb0-525400d6cd4f.18f6279531b","object":"email"} [2024-05-10 13:17:12] local.DEBUG: combining groups [2024-05-10 13:27:18] local.DEBUG: combining groups [2024-05-10 13:28:22] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.test001@gmail.com","name":"Kartik Test001"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kartik Test001,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">09786<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-10 13:28:22] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2c550da0-0ed1-11ef-92f5-5254000b1a0e.18f62b0c37a","object":"email"} [2024-05-10 13:32:51] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"parcel@gmail.com","name":"Parcel"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>08291<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-10 13:32:51] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ccab3220-0ed1-11ef-b1db-5254004d4100.18f62b4de42","object":"email"} [2024-05-10 16:52:04] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"dominicbiale@gmail.com","name":"dominicbiale@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello dominicbiale@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Haley Biale<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-10 16:52:04] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.a1329720-0eed-11ef-812f-525400d4bb1c.18f636b4192","object":"email"} [2024-05-11 05:24:34] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"parcel@gmail.com","name":"Parcel"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>56456<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 05:24:34] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c0d7b1a0-0f56-11ef-b1db-5254004d4100.18f661c31ba","object":"email"} [2024-05-11 05:46:08] local.DEBUG: combining groups [2024-05-11 05:46:35] local.DEBUG: combining groups [2024-05-11 06:41:02] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-05-11 06:41:03] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-05-11 07:02:32] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">19313<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 07:02:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.739fbf50-0f64-11ef-beb0-525400d6cd4f.18f6675f7c5","object":"email"} [2024-05-11 07:03:51] local.DEBUG: Current Balance: 0 [2024-05-11 07:04:47] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"franknmeli@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello franknmeli@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Francisco Fegurgur<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 07:04:47] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c0bc0af0-0f64-11ef-92f5-5254000b1a0e.18f6677f11f","object":"email"} [2024-05-11 07:05:01] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-11 07:05:02] local.DEBUG: task visible_to: [2024-05-11 07:05:14] local.DEBUG: task visible_to: [2024-05-11 07:05:25] local.DEBUG: task visible_to: [2024-05-11 07:06:14] local.DEBUG: Current Balance: 0 [2024-05-11 07:06:34] local.DEBUG: Current Balance: 0 [2024-05-11 07:06:44] local.DEBUG: task visible_to: [2024-05-11 07:07:31] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Daily attendance<\\/li>\\n <li><strong>Assigned By:<\\/strong> Francisco Fegurgur<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 07:07:31] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2297c520-0f65-11ef-9aa1-525400103106.18f667a7272","object":"email"} [2024-05-11 07:07:31] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 275 [2024-05-11 07:08:24] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Test<\\/li>\\n <li><strong>Assigned By:<\\/strong> Francisco Fegurgur<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 07:08:25] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.4252c950-0f65-11ef-812f-525400d4bb1c.18f667b4265","object":"email"} [2024-05-11 07:08:25] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 275 [2024-05-11 07:11:38] local.DEBUG: Current Balance: 0 [2024-05-11 10:32:08] local.DEBUG: Current Balance: 50 [2024-05-11 10:32:54] local.DEBUG: combining groups [2024-05-11 10:33:04] local.DEBUG: combining groups [2024-05-11 10:33:30] local.DEBUG: Current Balance: 50 [2024-05-11 10:33:50] local.DEBUG: Current Balance: 50 [2024-05-11 10:33:54] local.DEBUG: Current Balance: 50 [2024-05-11 10:33:58] local.DEBUG: combining groups [2024-05-11 10:34:16] local.DEBUG: Current Balance: 0 [2024-05-11 10:34:28] local.DEBUG: task visible_to: [2024-05-11 10:34:43] local.DEBUG: task visible_to: [2024-05-11 10:34:43] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-05-11 10:34:43] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 87 [2024-05-11 10:34:43] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gosiya.kartik@gmail.com","name":"Kartik Gosiya"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kartik Gosiya,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> play holi<\\/li>\\n <li><strong>Assigned To:<\\/strong> hirax<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:34:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.14d9adf0-0f82-11ef-9aa1-525400103106.18f6738264f","object":"email"} [2024-05-11 10:34:45] local.DEBUG: task visible_to: [2024-05-11 10:35:31] local.DEBUG: Review allowed to UserId: 87 for ClaimId:27, Reason: User is the owner of the group, and task belongs to the same group [2024-05-11 10:35:31] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> play holi<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:35:31] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.310d8730-0f82-11ef-9c12-52540064429e.18f6738df23","object":"email"} [2024-05-11 10:35:42] local.DEBUG: Review allowed to UserId: 87 for ClaimId:19, Reason: User is the owner of the group, and task belongs to the same group [2024-05-11 10:35:42] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> BCA Spoken English<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:35:42] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.37c1fd40-0f82-11ef-b1db-5254004d4100.18f67390b14","object":"email"} [2024-05-11 10:36:12] local.DEBUG: combining groups [2024-05-11 10:38:49] local.DEBUG: combining groups [2024-05-11 10:39:15] local.DEBUG: task visible_to: [2024-05-11 10:39:22] local.DEBUG: task visible_to: [2024-05-11 10:39:32] local.DEBUG: task visible_to: [2024-05-11 10:39:47] local.DEBUG: task visible_to: [2024-05-11 10:39:47] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-05-11 10:39:47] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 30 [2024-05-11 10:39:47] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sachin@gmail.com","name":"Sachin"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Sachin,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> items<\\/li>\\n <li><strong>Assigned To:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:39:47] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c9951310-0f82-11ef-beb0-525400d6cd4f.18f673cc6c1","object":"email"} [2024-05-11 10:39:48] local.DEBUG: task visible_to: [2024-05-11 10:39:52] local.DEBUG: combining groups [2024-05-11 10:41:31] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Tuit and sp test<\\/li>\\n <li><strong>Assigned By:<\\/strong> Sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:41:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.07f62900-0f83-11ef-a100-525400fa05f6.18f673e5f90","object":"email"} [2024-05-11 10:41:32] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Tuit and sp test<\\/li>\\n <li><strong>Assigned By:<\\/strong> Sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:41:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0823efc0-0f83-11ef-812f-525400d4bb1c.18f673e60bc","object":"email"} [2024-05-11 10:41:32] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 30 [2024-05-11 10:44:40] local.DEBUG: task visible_to: [2024-05-11 10:44:40] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-05-11 10:44:40] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 30 [2024-05-11 10:44:40] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sachin@gmail.com","name":"Sachin"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Sachin,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Tuit and sp test<\\/li>\\n <li><strong>Assigned To:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:44:40] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.784190f0-0f83-11ef-9aa1-525400103106.18f67413f7f","object":"email"} [2024-05-11 10:45:15] local.DEBUG: Review Not allowed for UserId: 16 for ClaimId:29, Reason: User is not the owner of the group [2024-05-11 10:45:31] local.DEBUG: Review allowed to UserId: 30 for ClaimId:29, Reason: User is the owner of the group, and task belongs to the same group [2024-05-11 10:45:32] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Tuit and sp test<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:45:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.9727b8f0-0f83-11ef-9c12-52540064429e.18f674209ff","object":"email"} [2024-05-11 10:50:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Lumi\\u0019s daily puzzle: beginner #32 tuit test<\\/li>\\n <li><strong>Assigned By:<\\/strong> Sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:50:13] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3e807380-0f84-11ef-92f5-5254000b1a0e.18f674652b8","object":"email"} [2024-05-11 10:50:13] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Lumi\\u0019s daily puzzle: beginner #32 tuit test<\\/li>\\n <li><strong>Assigned By:<\\/strong> Sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:50:13] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3ead9e00-0f84-11ef-beb0-525400d6cd4f.18f674653e0","object":"email"} [2024-05-11 10:50:13] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 30 [2024-05-11 10:50:41] local.DEBUG: task visible_to: [2024-05-11 10:50:41] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-05-11 10:50:41] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 30 [2024-05-11 10:50:41] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sachin@gmail.com","name":"Sachin"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Sachin,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Lumi\\u0019s daily puzzle: beginner #32 tuit test<\\/li>\\n <li><strong>Assigned To:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:50:41] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.4fbc60a0-0f84-11ef-812f-525400d4bb1c.18f6746c3aa","object":"email"} [2024-05-11 10:50:49] local.DEBUG: Review allowed to UserId: 30 for ClaimId:30, Reason: User is the owner of the group, and task belongs to the same group [2024-05-11 10:50:49] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Lumi\\u0019s daily puzzle: beginner #32 tuit test<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-11 10:50:49] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.54311fe0-0f84-11ef-9c12-52540064429e.18f6746e0de","object":"email"} [2024-05-11 10:50:49] local.INFO: 0.10000000 points allocated for CLAIM_REVIEW_BY_PARENT to 30 [2024-05-11 10:51:14] local.DEBUG: combining groups [2024-05-11 10:51:31] local.DEBUG: combining groups [2024-05-11 10:57:32] local.DEBUG: combining groups [2024-05-11 11:59:13] local.DEBUG: Current Balance: 100 [2024-05-11 12:51:51] local.DEBUG: Current Balance: 100 [2024-05-11 13:11:46] local.DEBUG: Current Balance: 100 [2024-05-11 13:11:53] local.DEBUG: Current Balance: 100 [2024-05-11 13:12:02] local.DEBUG: Current Balance: 100 [2024-05-11 13:12:12] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-11 13:12:21] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-11 13:12:24] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-11 13:12:29] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-11 13:12:34] local.DEBUG: Current Balance: 100 [2024-05-11 13:12:45] local.DEBUG: Current Balance: 100 [2024-05-11 13:12:54] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-11 13:13:00] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-11 13:14:54] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-11 13:15:03] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-11 13:15:09] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-11 13:15:13] local.DEBUG: task visible_to: [2024-05-11 13:15:20] local.DEBUG: task visible_to: [2024-05-11 13:15:27] local.DEBUG: task visible_to: [2024-05-11 13:15:40] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-12 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-12 20:26:29] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ernnichols@aol.com","name":"Ernest Nichols lll"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Ernest Nichols lll,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">15536<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-12 20:26:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e9fbadf0-109d-11ef-beb0-525400d6cd4f.18f6e7c464f","object":"email"} [2024-05-12 20:27:08] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 313 [2024-05-12 20:32:56] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"loanrevolution@gmail.com","name":"loanrevolution@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello loanrevolution@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Ernest Nichols lll<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-12 20:32:56] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d0a9a270-109e-11ef-92f5-5254000b1a0e.18f6e822e17","object":"email"} [2024-05-12 20:33:13] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"loanrevolution2@gmail.com","name":"loanrevolution2@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello loanrevolution2@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Ernest Nichols lll<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-12 20:33:13] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.dae4a730-109e-11ef-a100-525400fa05f6.18f6e827123","object":"email"} [2024-05-13 04:52:07] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-13 05:12:14] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-13 05:13:11] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-13 05:13:58] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-13 05:14:04] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-13 05:14:08] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-13 05:14:12] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-13 05:14:16] local.DEBUG: task visible_to: [2024-05-13 05:14:20] local.DEBUG: task visible_to: [2024-05-13 05:15:20] local.DEBUG: task visible_to: [2024-05-13 05:17:06] local.DEBUG: task visible_to: [2024-05-13 05:17:27] local.DEBUG: task visible_to: [2024-05-13 05:17:42] local.DEBUG: task visible_to: [2024-05-13 05:17:48] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-13 05:17:58] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(145): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-05-13 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-13 07:20:28] local.DEBUG: combining groups [2024-05-13 08:00:38] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"tscottwalk51@icloud.com","name":"T Scott Walker"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello T Scott Walker,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">98159<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-13 08:00:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e3197a10-10fe-11ef-beb0-525400d6cd4f.18f70f7cc31","object":"email"} [2024-05-13 08:01:00] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 314 [2024-05-13 08:04:37] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"tscottwalk51@icloud.com","name":"T Scott Walker"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>95813<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-13 08:04:37] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7159cc30-10ff-11ef-92f5-5254000b1a0e.18f70fb7073","object":"email"} [2024-05-13 08:04:48] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 314 [2024-05-13 08:05:38] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"tscottwalk51@icloud.com","name":"T Scott Walker"}}],"subject":"Password Reset Successful - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset Successful - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset Successful<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello T Scott Walker,<\\/p>\\n <p>Your password has been successfully reset for your Coins for College account.<\\/p>\\n <p>If you did not initiate this password reset or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-13 08:05:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.95ebacd0-10ff-11ef-a100-525400fa05f6.18f70fc601d","object":"email"} [2024-05-13 13:04:21] local.DEBUG: combining groups [2024-05-13 13:15:55] local.DEBUG: combining groups [2024-05-13 13:16:20] local.DEBUG: combining groups [2024-05-13 13:20:59] local.DEBUG: combining groups [2024-05-13 13:22:45] local.DEBUG: combining groups [2024-05-13 13:24:00] local.DEBUG: combining groups [2024-05-13 13:27:17] local.DEBUG: combining groups [2024-05-13 13:27:25] local.DEBUG: combining groups [2024-05-13 13:27:26] local.DEBUG: combining groups [2024-05-13 13:27:28] local.DEBUG: combining groups [2024-05-13 13:27:29] local.DEBUG: combining groups [2024-05-13 13:28:55] local.DEBUG: combining groups [2024-05-13 13:29:15] local.DEBUG: combining groups [2024-05-13 13:29:17] local.DEBUG: combining groups [2024-05-13 13:29:18] local.DEBUG: combining groups [2024-05-13 13:29:24] local.DEBUG: combining groups [2024-05-13 14:30:40] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"stephmassiah@gmail.com","name":"Stephanie Luzunaris"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Stephanie Luzunaris,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">81226<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-13 14:30:40] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5f9bce40-1135-11ef-9aa1-525400103106.18f725ce124","object":"email"} [2024-05-13 14:30:59] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 316 [2024-05-13 16:20:07] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"darionisaiah@yahoo.com","name":"Dea Torres"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dea Torres,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">68375<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-13 16:20:08] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.aa367a40-1144-11ef-bd28-525400d6cd4f.18f72c117e4","object":"email"} [2024-05-13 16:20:31] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 317 [2024-05-13 16:30:17] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"manofgod3380@gmail.com","name":"William Townsend"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello William Townsend,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">39296<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-13 16:30:17] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.159a2060-1146-11ef-96dc-5254000b1a0e.18f72ca6566","object":"email"} [2024-05-13 16:31:27] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"manofgod3380@gmail.com","name":"William Townsend"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>34788<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-13 16:31:27] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3f4e8c70-1146-11ef-b8d4-525400fa05f6.18f72cb76b7","object":"email"} [2024-05-13 16:32:00] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 318 [2024-05-14 06:01:23] local.DEBUG: Current Balance: 100 [2024-05-14 06:01:39] local.DEBUG: Current Balance: 100 [2024-05-14 06:01:48] local.DEBUG: task visible_to: [2024-05-14 06:02:09] local.DEBUG: task visible_to: [2024-05-14 07:05:01] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-14 22:46:36] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"anabellepo@yahoo.com","name":"Anabelle Osit"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Anabelle Osit,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">44549<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-14 22:46:36] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d1e17fe0-1243-11ef-9046-525400ae9113.18f794946de","object":"email"} [2024-05-14 22:47:26] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 320 [2024-05-15 01:26:31] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jsims209@gmail.com","name":"Joshua James Simmons"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Joshua James Simmons,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">25847<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-15 01:26:31] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.291d5700-125a-11ef-a58b-5254000b1a0e.18f79dbb070","object":"email"} [2024-05-15 01:26:56] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 321 [2024-05-15 01:29:05] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Hoffman.michellemarie@gmail.com","name":"Hoffman.michellemarie@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Hoffman.michellemarie@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Joshua James Simmons<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-15 01:29:05] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.84e87c40-125a-11ef-a58b-5254000b1a0e.18f79de0a04","object":"email"} [2024-05-15 01:32:33] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"hoffman.michellemarie@gmail.com","name":"Michelle Hoffman"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Michelle Hoffman,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">30010<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-15 01:32:33] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.00e7cd50-125b-11ef-ac99-525400103106.18f79e136a5","object":"email"} [2024-05-15 01:32:57] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 322 [2024-05-15 03:05:14] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sophia@lovelife.org","name":"Sophia Martin"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Sophia Martin,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">25170<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-15 03:05:14] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f3552631-1267-11ef-b412-52540064429e.18f7a361013","object":"email"} [2024-05-15 03:05:41] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 323 [2024-05-15 03:10:39] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"bstufo@proton.me","name":"Bonnie Tufo"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Bonnie Tufo,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">86700<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-15 03:10:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b5227dd0-1268-11ef-a58b-5254000b1a0e.18f7a3b062d","object":"email"} [2024-05-15 03:11:15] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 324 [2024-05-15 03:12:22] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"biz.trishonna@gmail.com","name":"Trishonna James"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Trishonna James,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">83362<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-15 03:12:22] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f29933c0-1268-11ef-8561-525400d6cd4f.18f7a3c98fc","object":"email"} [2024-05-15 03:12:49] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 325 [2024-05-15 06:40:30] local.DEBUG: combining groups [2024-05-15 07:05:01] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-15 07:13:57] local.DEBUG: combining groups [2024-05-15 07:16:25] local.DEBUG: combining groups [2024-05-15 07:16:51] local.DEBUG: combining groups [2024-05-15 07:24:32] local.DEBUG: combining groups [2024-05-15 07:25:05] local.DEBUG: combining groups [2024-05-15 07:34:20] local.DEBUG: combining groups [2024-05-15 07:35:20] local.DEBUG: combining groups [2024-05-15 07:36:00] local.DEBUG: combining groups [2024-05-15 07:40:28] local.DEBUG: combining groups [2024-05-15 07:41:18] local.DEBUG: combining groups [2024-05-15 07:42:13] local.DEBUG: combining groups [2024-05-15 07:45:13] local.DEBUG: combining groups [2024-05-15 08:55:25] local.DEBUG: combining groups [2024-05-15 08:56:03] local.DEBUG: combining groups [2024-05-15 08:56:05] local.DEBUG: combining groups [2024-05-15 08:56:08] local.DEBUG: combining groups [2024-05-15 08:56:10] local.DEBUG: combining groups [2024-05-15 08:56:12] local.DEBUG: combining groups [2024-05-15 08:56:15] local.DEBUG: combining groups [2024-05-15 08:56:18] local.DEBUG: combining groups [2024-05-15 08:56:20] local.DEBUG: combining groups [2024-05-15 08:56:22] local.DEBUG: combining groups [2024-05-15 08:56:25] local.DEBUG: combining groups [2024-05-15 08:58:14] local.DEBUG: combining groups [2024-05-15 09:00:02] local.DEBUG: combining groups [2024-05-15 09:00:43] local.DEBUG: combining groups [2024-05-15 09:02:51] local.DEBUG: combining groups [2024-05-15 09:04:53] local.DEBUG: combining groups [2024-05-15 09:05:05] local.DEBUG: combining groups [2024-05-15 09:05:13] local.DEBUG: combining groups [2024-05-15 09:05:18] local.DEBUG: combining groups [2024-05-15 09:05:31] local.DEBUG: combining groups [2024-05-15 09:09:27] local.DEBUG: combining groups [2024-05-15 09:09:30] local.DEBUG: combining groups [2024-05-15 09:09:35] local.DEBUG: combining groups [2024-05-15 09:09:38] local.DEBUG: combining groups [2024-05-15 09:09:42] local.DEBUG: combining groups [2024-05-15 09:10:02] local.DEBUG: combining groups [2024-05-15 09:10:04] local.DEBUG: combining groups [2024-05-15 09:10:07] local.DEBUG: combining groups [2024-05-15 09:10:09] local.DEBUG: combining groups [2024-05-15 09:10:16] local.DEBUG: combining groups [2024-05-15 09:10:35] local.DEBUG: combining groups [2024-05-15 09:10:37] local.DEBUG: combining groups [2024-05-15 09:10:39] local.DEBUG: combining groups [2024-05-15 09:10:44] local.DEBUG: combining groups [2024-05-15 09:15:48] local.DEBUG: combining groups [2024-05-15 09:16:11] local.DEBUG: combining groups [2024-05-15 09:16:16] local.DEBUG: combining groups [2024-05-15 09:16:25] local.DEBUG: combining groups [2024-05-15 09:18:07] local.DEBUG: combining groups [2024-05-15 09:18:13] local.DEBUG: combining groups [2024-05-15 09:18:20] local.DEBUG: combining groups [2024-05-15 09:18:24] local.DEBUG: combining groups [2024-05-15 09:18:32] local.DEBUG: combining groups [2024-05-15 09:24:07] local.DEBUG: combining groups [2024-05-15 09:24:16] local.DEBUG: combining groups [2024-05-15 09:24:26] local.DEBUG: combining groups [2024-05-15 09:24:30] local.DEBUG: combining groups [2024-05-15 09:30:26] local.DEBUG: combining groups [2024-05-15 09:32:06] local.DEBUG: combining groups [2024-05-15 09:32:17] local.DEBUG: combining groups [2024-05-15 09:34:30] local.DEBUG: combining groups [2024-05-15 09:38:33] local.DEBUG: combining groups [2024-05-15 09:39:23] local.DEBUG: combining groups [2024-05-15 09:41:17] local.DEBUG: combining groups [2024-05-15 10:07:19] local.DEBUG: combining groups [2024-05-15 10:07:35] local.DEBUG: combining groups [2024-05-15 10:37:22] local.DEBUG: combining groups [2024-05-15 10:38:14] local.DEBUG: combining groups [2024-05-15 10:40:06] local.DEBUG: combining groups [2024-05-15 10:58:33] local.DEBUG: combining groups [2024-05-15 10:59:47] local.DEBUG: combining groups [2024-05-15 11:01:05] local.DEBUG: combining groups [2024-05-15 11:01:49] local.DEBUG: combining groups [2024-05-15 11:02:11] local.DEBUG: combining groups [2024-05-15 11:02:37] local.DEBUG: combining groups [2024-05-15 11:05:04] local.DEBUG: combining groups [2024-05-15 11:24:55] local.DEBUG: combining groups [2024-05-15 11:26:04] local.DEBUG: combining groups [2024-05-15 11:27:02] local.DEBUG: combining groups [2024-05-15 11:28:54] local.DEBUG: combining groups [2024-05-15 11:29:18] local.DEBUG: combining groups [2024-05-15 11:32:19] local.DEBUG: combining groups [2024-05-15 11:34:16] local.DEBUG: combining groups [2024-05-15 11:36:42] local.DEBUG: combining groups [2024-05-15 11:37:29] local.DEBUG: combining groups [2024-05-15 11:43:29] local.DEBUG: combining groups [2024-05-15 11:43:58] local.DEBUG: combining groups [2024-05-15 11:47:25] local.DEBUG: combining groups [2024-05-15 11:48:02] local.DEBUG: combining groups [2024-05-15 11:48:23] local.DEBUG: combining groups [2024-05-15 11:48:40] local.DEBUG: combining groups [2024-05-15 11:48:52] local.DEBUG: combining groups [2024-05-15 11:49:04] local.DEBUG: combining groups [2024-05-15 11:52:54] local.DEBUG: combining groups [2024-05-15 11:54:56] local.DEBUG: combining groups [2024-05-15 12:02:19] local.DEBUG: combining groups [2024-05-15 12:03:53] local.DEBUG: combining groups [2024-05-15 12:10:00] local.DEBUG: combining groups [2024-05-15 12:10:47] local.DEBUG: combining groups [2024-05-15 12:11:41] local.DEBUG: combining groups [2024-05-15 12:13:52] local.DEBUG: combining groups [2024-05-15 12:17:56] local.DEBUG: combining groups [2024-05-15 12:18:50] local.DEBUG: combining groups [2024-05-15 12:19:12] local.DEBUG: combining groups [2024-05-15 12:48:52] local.DEBUG: combining groups [2024-05-15 12:49:02] local.DEBUG: combining groups [2024-05-15 12:49:18] local.DEBUG: combining groups [2024-05-15 12:49:29] local.DEBUG: combining groups [2024-05-15 12:50:18] local.DEBUG: combining groups [2024-05-15 12:50:27] local.DEBUG: combining groups [2024-05-15 12:50:56] local.DEBUG: combining groups [2024-05-15 12:51:04] local.DEBUG: combining groups [2024-05-15 12:51:19] local.DEBUG: combining groups [2024-05-15 12:51:28] local.DEBUG: combining groups [2024-05-15 12:51:42] local.DEBUG: combining groups [2024-05-15 12:51:54] local.DEBUG: combining groups [2024-05-15 12:51:54] local.DEBUG: combining groups [2024-05-15 12:52:04] local.DEBUG: combining groups [2024-05-15 12:52:05] local.DEBUG: combining groups [2024-05-15 12:52:09] local.DEBUG: combining groups [2024-05-15 12:52:10] local.DEBUG: combining groups [2024-05-15 12:52:14] local.DEBUG: combining groups [2024-05-15 12:52:15] local.DEBUG: combining groups [2024-05-15 12:52:36] local.DEBUG: combining groups [2024-05-15 12:52:36] local.DEBUG: combining groups [2024-05-15 12:52:46] local.DEBUG: combining groups [2024-05-15 12:53:14] local.DEBUG: combining groups [2024-05-15 12:53:15] local.DEBUG: combining groups [2024-05-15 12:54:29] local.DEBUG: combining groups [2024-05-15 12:54:35] local.DEBUG: combining groups [2024-05-15 12:54:35] local.DEBUG: combining groups [2024-05-15 12:54:40] local.DEBUG: combining groups [2024-05-15 12:54:41] local.DEBUG: combining groups [2024-05-15 12:54:48] local.DEBUG: combining groups [2024-05-15 12:55:00] local.DEBUG: combining groups [2024-05-15 12:55:38] local.DEBUG: combining groups [2024-05-15 12:55:57] local.DEBUG: combining groups [2024-05-15 12:57:50] local.DEBUG: combining groups [2024-05-15 12:58:23] local.DEBUG: combining groups [2024-05-15 13:10:46] local.DEBUG: combining groups [2024-05-15 13:13:44] local.DEBUG: combining groups [2024-05-15 13:14:03] local.DEBUG: combining groups [2024-05-15 13:14:23] local.DEBUG: combining groups [2024-05-15 13:14:40] local.DEBUG: combining groups [2024-05-15 13:15:25] local.DEBUG: combining groups [2024-05-15 13:15:44] local.DEBUG: combining groups [2024-05-15 13:16:29] local.DEBUG: combining groups [2024-05-15 13:17:01] local.DEBUG: combining groups [2024-05-15 13:17:34] local.DEBUG: combining groups [2024-05-15 13:18:18] local.DEBUG: combining groups [2024-05-15 13:19:36] local.DEBUG: combining groups [2024-05-15 13:20:44] local.DEBUG: combining groups [2024-05-15 13:21:22] local.DEBUG: combining groups [2024-05-15 13:26:17] local.DEBUG: combining groups [2024-05-15 13:28:54] local.DEBUG: combining groups [2024-05-15 13:29:52] local.DEBUG: combining groups [2024-05-15 16:56:23] local.DEBUG: task visible_to: [2024-05-15 16:57:19] local.DEBUG: task visible_to: [2024-05-15 16:57:19] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-05-15 16:57:19] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 93 [2024-05-15 16:57:19] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"aman@coinsforcollege.org","name":"Aman"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Aman,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Wash Dishes<\\/li>\\n <li><strong>Assigned To:<\\/strong> Emelia Fegurgur<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-15 16:57:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.312d4450-12dc-11ef-9d27-5254004d4100.18f7d2fdd15","object":"email"} [2024-05-15 16:57:20] local.DEBUG: task visible_to: [2024-05-15 16:57:42] local.DEBUG: task visible_to: [2024-05-15 16:58:16] local.DEBUG: task visible_to: [2024-05-15 16:58:16] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-05-15 16:58:16] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 93 [2024-05-15 16:58:16] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"aman@coinsforcollege.org","name":"Aman"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Aman,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Clean Bathroom<\\/li>\\n <li><strong>Assigned To:<\\/strong> Emelia Fegurgur<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-15 16:58:17] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.53396470-12dc-11ef-9d27-5254004d4100.18f7d30bc37","object":"email"} [2024-05-15 16:58:17] local.DEBUG: task visible_to: [2024-05-15 21:12:13] local.DEBUG: Product Image Details: Array ( [product_id] => 262 [image_name] => 18880374241715807532.jpeg ) [2024-05-15 21:12:13] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 275 [2024-05-15 21:12:15] local.DEBUG: Product Image Details: Array ( [product_id] => 263 [image_name] => 21271134841715807535.jpeg ) [2024-05-15 21:12:15] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 275 [2024-05-15 21:12:19] local.DEBUG: Product Image Details: Array ( [product_id] => 264 [image_name] => 20778673211715807539.jpeg ) [2024-05-15 21:12:20] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 275 [2024-05-15 21:13:53] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> homework<\\/li>\\n <li><strong>Assigned By:<\\/strong> Francisco Fegurgur<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-15 21:13:59] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0bd941d0-1300-11ef-9739-525400fa05f6.18f7e1ad66d","object":"email"} [2024-05-15 21:13:59] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 275 [2024-05-15 21:14:19] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Daily attendance<\\/li>\\n <li><strong>Assigned By:<\\/strong> Francisco Fegurgur<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-15 21:14:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.17f25560-1300-11ef-a58b-5254000b1a0e.18f7e1b25b6","object":"email"} [2024-05-15 21:14:37] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Daily attendance<\\/li>\\n <li><strong>Assigned By:<\\/strong> Francisco Fegurgur<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-15 21:14:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.231d8680-1300-11ef-9046-525400ae9113.18f7e1b6ee8","object":"email"} [2024-05-15 21:14:38] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 275 [2024-05-16 05:06:55] local.DEBUG: combining groups [2024-05-16 05:08:14] local.DEBUG: combining groups [2024-05-16 05:08:52] local.DEBUG: combining groups [2024-05-16 05:09:15] local.DEBUG: combining groups [2024-05-16 05:09:31] local.DEBUG: combining groups [2024-05-16 05:09:36] local.DEBUG: combining groups [2024-05-16 05:13:31] local.DEBUG: combining groups [2024-05-16 05:15:06] local.DEBUG: combining groups [2024-05-16 05:15:12] local.DEBUG: combining groups [2024-05-16 05:16:36] local.DEBUG: combining groups [2024-05-16 05:20:27] local.DEBUG: combining groups [2024-05-16 05:21:47] local.DEBUG: combining groups [2024-05-16 05:26:02] local.DEBUG: combining groups [2024-05-16 05:26:11] local.DEBUG: combining groups [2024-05-16 05:32:47] local.DEBUG: combining groups [2024-05-16 05:33:20] local.DEBUG: combining groups [2024-05-16 05:45:29] local.DEBUG: combining groups [2024-05-16 05:45:51] local.DEBUG: combining groups [2024-05-16 05:47:00] local.DEBUG: combining groups [2024-05-16 05:47:20] local.DEBUG: combining groups [2024-05-16 05:51:31] local.DEBUG: combining groups [2024-05-16 05:51:44] local.DEBUG: combining groups [2024-05-16 05:53:02] local.DEBUG: combining groups [2024-05-16 05:53:04] local.DEBUG: combining groups [2024-05-16 05:53:05] local.DEBUG: combining groups [2024-05-16 05:53:07] local.DEBUG: combining groups [2024-05-16 06:38:27] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 326 [2024-05-16 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-16 07:07:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"marliqia003@gmail.com","name":"Annelise Gleason"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Annelise Gleason,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">82642<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-16 07:07:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f3458400-1352-11ef-a0ad-525400f92481.18f803a2840","object":"email"} [2024-05-16 07:08:23] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 327 [2024-05-16 07:09:17] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"annelisegleason6@gmail.com","name":"annelisegleason6@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello annelisegleason6@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Annelise Gleason<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-16 07:09:17] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.35e41c90-1353-11ef-9c7c-525400d6cd4f.18f803bdcd9","object":"email"} [2024-05-16 07:13:10] local.DEBUG: Current Balance: 0 [2024-05-16 07:13:15] local.DEBUG: Current Balance: 0 [2024-05-16 07:13:51] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-16 07:28:08] local.DEBUG: combining groups [2024-05-16 07:28:59] local.DEBUG: combining groups [2024-05-16 07:29:07] local.DEBUG: combining groups [2024-05-16 07:36:43] local.DEBUG: combining groups [2024-05-16 07:37:04] local.DEBUG: combining groups [2024-05-16 07:44:50] local.DEBUG: combining groups [2024-05-16 07:45:54] local.DEBUG: combining groups [2024-05-16 08:54:21] local.DEBUG: combining groups [2024-05-16 08:55:33] local.DEBUG: combining groups [2024-05-16 09:34:17] local.DEBUG: combining groups [2024-05-16 09:34:24] local.DEBUG: combining groups [2024-05-16 09:34:32] local.DEBUG: combining groups [2024-05-16 10:28:01] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"milan0204@hotmail.nl","name":"Milan van Leeuwen"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Milan van Leeuwen,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">11594<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-16 10:28:01] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f8c89540-136e-11ef-855e-5254008f5018.18f80f1cc94","object":"email"} [2024-05-16 10:28:24] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 328 [2024-05-16 10:59:57] local.DEBUG: combining groups [2024-05-16 11:06:02] local.DEBUG: combining groups [2024-05-16 11:06:48] local.DEBUG: combining groups [2024-05-16 11:07:20] local.DEBUG: combining groups [2024-05-16 11:09:51] local.DEBUG: combining groups [2024-05-16 11:10:28] local.DEBUG: combining groups [2024-05-16 11:11:08] local.DEBUG: combining groups [2024-05-16 11:12:38] local.DEBUG: combining groups [2024-05-16 11:13:04] local.DEBUG: combining groups [2024-05-16 11:16:14] local.DEBUG: combining groups [2024-05-16 11:16:28] local.DEBUG: combining groups [2024-05-16 11:18:16] local.DEBUG: combining groups [2024-05-16 11:18:16] local.DEBUG: combining groups [2024-05-16 11:18:24] local.DEBUG: combining groups [2024-05-16 11:18:25] local.DEBUG: combining groups [2024-05-16 11:18:31] local.DEBUG: combining groups [2024-05-16 11:18:31] local.DEBUG: combining groups [2024-05-16 11:18:39] local.DEBUG: combining groups [2024-05-16 11:18:40] local.DEBUG: combining groups [2024-05-16 11:19:56] local.DEBUG: combining groups [2024-05-16 11:22:31] local.DEBUG: combining groups [2024-05-16 11:23:19] local.DEBUG: combining groups [2024-05-16 11:24:35] local.DEBUG: combining groups [2024-05-16 11:28:21] local.DEBUG: combining groups [2024-05-16 11:29:47] local.DEBUG: combining groups [2024-05-16 11:29:58] local.DEBUG: combining groups [2024-05-16 11:30:05] local.DEBUG: combining groups [2024-05-16 11:40:16] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sachin@gmail.com","name":"Sachin"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>36011<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-16 11:40:16] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.10f3abf0-1379-11ef-91c4-525400d6cd4f.18f8133f42f","object":"email"} [2024-05-16 11:49:08] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"john100@gmail.com","name":"John"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello John,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">12997<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-16 11:49:09] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.4e32e1b1-137a-11ef-91c4-525400d6cd4f.18f813c1347","object":"email"} [2024-05-16 11:59:46] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"john100@gmail.com","name":"John"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>18981<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-16 11:59:46] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ca557cc0-137b-11ef-9fe5-5254004d4100.18f8145ce8c","object":"email"} [2024-05-16 12:00:23] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"john100@gmail.com","name":"John"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>39884<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-16 12:00:23] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e04a3700-137b-11ef-a611-525400103106.18f81465e70","object":"email"} [2024-05-16 12:02:58] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"john100@gmail.com","name":"John"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>67351<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-16 12:03:00] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3d27ddb0-137c-11ef-847d-525400ae9113.18f8148bf0b","object":"email"} [2024-05-16 12:03:11] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 329 [2024-05-16 12:03:18] local.DEBUG: combining groups [2024-05-16 12:16:41] local.DEBUG: combining groups [2024-05-16 12:17:59] local.DEBUG: combining groups [2024-05-16 12:18:38] local.DEBUG: combining groups [2024-05-16 12:19:59] local.DEBUG: combining groups [2024-05-16 12:42:40] local.DEBUG: combining groups [2024-05-16 12:45:47] local.DEBUG: combining groups [2024-05-16 12:49:35] local.DEBUG: combining groups [2024-05-16 12:50:16] local.DEBUG: combining groups [2024-05-16 12:51:56] local.DEBUG: combining groups [2024-05-16 12:53:40] local.DEBUG: combining groups [2024-05-16 12:55:23] local.DEBUG: combining groups [2024-05-16 12:56:31] local.DEBUG: combining groups [2024-05-16 13:30:00] local.DEBUG: combining groups [2024-05-16 16:14:28] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Jennifer.lyman2010@gmail.com","name":"Jennifer Johanna Lyman"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jennifer Johanna Lyman,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">66039<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-16 16:14:28] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5f217250-139f-11ef-847d-525400ae9113.18f822efdf5","object":"email"} [2024-05-16 16:14:51] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 330 [2024-05-16 18:31:27] local.DEBUG: Current Balance: 0 [2024-05-16 18:31:39] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-16 18:32:03] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-16 18:32:08] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-16 18:32:35] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-16 18:33:04] local.DEBUG: Current Balance: 0 [2024-05-16 18:33:09] local.DEBUG: Current Balance: 0 [2024-05-16 19:27:24] local.DEBUG: combining groups [2024-05-16 19:27:31] local.DEBUG: combining groups [2024-05-16 22:26:40] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-05-16 22:26:40] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-05-16 22:29:56] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-05-16 22:29:56] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-05-17 05:48:13] local.DEBUG: combining groups [2024-05-17 05:48:21] local.DEBUG: combining groups [2024-05-17 05:49:41] local.DEBUG: combining groups [2024-05-17 05:49:46] local.DEBUG: combining groups [2024-05-17 05:49:51] local.DEBUG: combining groups [2024-05-17 05:52:34] local.DEBUG: combining groups [2024-05-17 05:52:39] local.DEBUG: combining groups [2024-05-17 05:53:31] local.DEBUG: combining groups [2024-05-17 05:53:37] local.DEBUG: combining groups [2024-05-17 05:54:56] local.DEBUG: combining groups [2024-05-17 05:55:48] local.DEBUG: combining groups [2024-05-17 05:55:54] local.DEBUG: combining groups [2024-05-17 05:56:23] local.DEBUG: combining groups [2024-05-17 05:56:46] local.DEBUG: combining groups [2024-05-17 05:56:52] local.DEBUG: combining groups [2024-05-17 05:56:56] local.DEBUG: combining groups [2024-05-17 05:57:07] local.DEBUG: combining groups [2024-05-17 05:57:09] local.DEBUG: combining groups [2024-05-17 05:57:12] local.DEBUG: combining groups [2024-05-17 05:57:19] local.DEBUG: combining groups [2024-05-17 05:57:22] local.DEBUG: combining groups [2024-05-17 05:57:39] local.DEBUG: combining groups [2024-05-17 05:57:42] local.DEBUG: combining groups [2024-05-17 05:58:58] local.DEBUG: combining groups [2024-05-17 05:59:03] local.DEBUG: combining groups [2024-05-17 06:01:53] local.DEBUG: combining groups [2024-05-17 06:01:57] local.DEBUG: combining groups [2024-05-17 06:02:01] local.DEBUG: combining groups [2024-05-17 06:09:16] local.DEBUG: combining groups [2024-05-17 06:09:20] local.DEBUG: combining groups [2024-05-17 06:09:25] local.DEBUG: combining groups [2024-05-17 06:09:48] local.DEBUG: combining groups [2024-05-17 06:10:11] local.DEBUG: combining groups [2024-05-17 06:10:14] local.DEBUG: combining groups [2024-05-17 06:10:30] local.DEBUG: combining groups [2024-05-17 06:10:33] local.DEBUG: combining groups [2024-05-17 06:10:37] local.DEBUG: combining groups [2024-05-17 06:10:50] local.DEBUG: combining groups [2024-05-17 06:11:49] local.DEBUG: combining groups [2024-05-17 06:11:55] local.DEBUG: combining groups [2024-05-17 06:11:58] local.DEBUG: combining groups [2024-05-17 06:12:28] local.DEBUG: combining groups [2024-05-17 06:12:34] local.DEBUG: combining groups [2024-05-17 06:12:42] local.DEBUG: combining groups [2024-05-17 06:12:45] local.DEBUG: combining groups [2024-05-17 06:16:50] local.DEBUG: combining groups [2024-05-17 06:17:08] local.DEBUG: combining groups [2024-05-17 06:17:13] local.DEBUG: combining groups [2024-05-17 06:17:16] local.DEBUG: combining groups [2024-05-17 06:17:39] local.DEBUG: combining groups [2024-05-17 06:17:51] local.DEBUG: combining groups [2024-05-17 06:17:54] local.DEBUG: combining groups [2024-05-17 06:18:07] local.DEBUG: combining groups [2024-05-17 06:18:19] local.DEBUG: combining groups [2024-05-17 06:18:40] local.DEBUG: combining groups [2024-05-17 06:18:45] local.DEBUG: combining groups [2024-05-17 06:18:50] local.DEBUG: combining groups [2024-05-17 06:19:00] local.DEBUG: combining groups [2024-05-17 06:21:25] local.DEBUG: combining groups [2024-05-17 06:21:29] local.DEBUG: combining groups [2024-05-17 06:21:42] local.DEBUG: combining groups [2024-05-17 06:22:01] local.DEBUG: combining groups [2024-05-17 06:22:04] local.DEBUG: combining groups [2024-05-17 06:25:28] local.DEBUG: combining groups [2024-05-17 06:25:34] local.DEBUG: combining groups [2024-05-17 06:26:03] local.DEBUG: combining groups [2024-05-17 06:26:54] local.DEBUG: combining groups [2024-05-17 06:26:57] local.DEBUG: combining groups [2024-05-17 06:27:38] local.DEBUG: combining groups [2024-05-17 06:29:14] local.DEBUG: combining groups [2024-05-17 06:29:23] local.DEBUG: combining groups [2024-05-17 06:29:24] local.DEBUG: combining groups [2024-05-17 06:29:28] local.DEBUG: combining groups [2024-05-17 06:30:09] local.DEBUG: combining groups [2024-05-17 06:30:12] local.DEBUG: combining groups [2024-05-17 06:30:14] local.DEBUG: combining groups [2024-05-17 06:30:48] local.DEBUG: combining groups [2024-05-17 06:32:16] local.DEBUG: combining groups [2024-05-17 06:32:57] local.DEBUG: combining groups [2024-05-17 06:32:59] local.DEBUG: combining groups [2024-05-17 06:34:01] local.DEBUG: combining groups [2024-05-17 06:34:03] local.DEBUG: combining groups [2024-05-17 06:34:04] local.DEBUG: combining groups [2024-05-17 06:34:04] local.DEBUG: combining groups [2024-05-17 06:34:05] local.DEBUG: combining groups [2024-05-17 06:34:05] local.DEBUG: combining groups [2024-05-17 06:34:05] local.DEBUG: combining groups [2024-05-17 06:34:06] local.DEBUG: combining groups [2024-05-17 06:34:26] local.DEBUG: combining groups [2024-05-17 06:34:57] local.DEBUG: combining groups [2024-05-17 06:35:42] local.DEBUG: combining groups [2024-05-17 06:35:46] local.DEBUG: combining groups [2024-05-17 06:35:48] local.DEBUG: combining groups [2024-05-17 06:35:56] local.DEBUG: combining groups [2024-05-17 06:36:03] local.DEBUG: combining groups [2024-05-17 06:36:10] local.DEBUG: combining groups [2024-05-17 06:38:20] local.DEBUG: combining groups [2024-05-17 06:38:35] local.DEBUG: combining groups [2024-05-17 06:39:00] local.DEBUG: combining groups [2024-05-17 06:39:05] local.DEBUG: combining groups [2024-05-17 06:43:52] local.DEBUG: combining groups [2024-05-17 06:44:35] local.DEBUG: combining groups [2024-05-17 06:45:40] local.DEBUG: combining groups [2024-05-17 06:45:45] local.DEBUG: combining groups [2024-05-17 06:46:16] local.DEBUG: combining groups [2024-05-17 06:46:43] local.DEBUG: combining groups [2024-05-17 06:47:07] local.DEBUG: combining groups [2024-05-17 06:48:08] local.DEBUG: combining groups [2024-05-17 06:50:28] local.DEBUG: combining groups [2024-05-17 06:50:49] local.DEBUG: combining groups [2024-05-17 06:51:47] local.DEBUG: combining groups [2024-05-17 06:52:56] local.DEBUG: combining groups [2024-05-17 06:53:20] local.DEBUG: combining groups [2024-05-17 06:53:46] local.DEBUG: combining groups [2024-05-17 06:54:15] local.DEBUG: combining groups [2024-05-17 06:54:17] local.DEBUG: combining groups [2024-05-17 06:55:40] local.DEBUG: combining groups [2024-05-17 06:57:00] local.DEBUG: combining groups [2024-05-17 06:59:51] local.DEBUG: combining groups [2024-05-17 06:59:56] local.DEBUG: combining groups [2024-05-17 07:00:16] local.DEBUG: combining groups [2024-05-17 07:00:34] local.DEBUG: combining groups [2024-05-17 07:02:28] local.DEBUG: combining groups [2024-05-17 07:03:08] local.DEBUG: combining groups [2024-05-17 07:03:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"darenochoa@ymail.com","name":"Daren Ochoa"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Daren Ochoa,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">55931<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-17 07:03:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8e9a3cc0-141b-11ef-8ffb-525400d4bb1c.18f855cda8c","object":"email"} [2024-05-17 07:03:45] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 331 [2024-05-17 07:04:33] local.DEBUG: combining groups [2024-05-17 07:04:40] local.DEBUG: combining groups [2024-05-17 07:05:01] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-17 07:05:59] local.DEBUG: combining groups [2024-05-17 07:05:59] local.DEBUG: combining groups [2024-05-17 07:06:37] local.DEBUG: combining groups [2024-05-17 07:06:58] local.DEBUG: combining groups [2024-05-17 07:07:36] local.DEBUG: combining groups [2024-05-17 07:07:51] local.DEBUG: combining groups [2024-05-17 07:08:52] local.DEBUG: combining groups [2024-05-17 07:09:07] local.DEBUG: combining groups [2024-05-17 07:09:42] local.DEBUG: combining groups [2024-05-17 07:09:55] local.DEBUG: combining groups [2024-05-17 07:11:13] local.DEBUG: combining groups [2024-05-17 07:11:27] local.DEBUG: combining groups [2024-05-17 07:12:48] local.DEBUG: combining groups [2024-05-17 07:13:03] local.DEBUG: combining groups [2024-05-17 07:13:46] local.DEBUG: combining groups [2024-05-17 07:14:04] local.DEBUG: combining groups [2024-05-17 07:14:17] local.DEBUG: combining groups [2024-05-17 07:14:22] local.DEBUG: combining groups [2024-05-17 07:14:38] local.DEBUG: combining groups [2024-05-17 07:15:40] local.DEBUG: combining groups [2024-05-17 07:16:09] local.DEBUG: combining groups [2024-05-17 07:16:48] local.DEBUG: combining groups [2024-05-17 07:17:36] local.DEBUG: combining groups [2024-05-17 07:18:57] local.DEBUG: combining groups [2024-05-17 07:19:23] local.DEBUG: combining groups [2024-05-17 07:19:57] local.DEBUG: combining groups [2024-05-17 07:20:04] local.DEBUG: combining groups [2024-05-17 07:21:03] local.DEBUG: combining groups [2024-05-17 07:21:28] local.DEBUG: combining groups [2024-05-17 07:21:43] local.DEBUG: combining groups [2024-05-17 07:21:59] local.DEBUG: combining groups [2024-05-17 08:55:32] local.DEBUG: combining groups [2024-05-17 08:59:39] local.DEBUG: combining groups [2024-05-17 09:00:29] local.DEBUG: combining groups [2024-05-17 09:01:11] local.DEBUG: combining groups [2024-05-17 09:02:03] local.DEBUG: combining groups [2024-05-17 09:03:13] local.DEBUG: combining groups [2024-05-17 09:03:25] local.DEBUG: combining groups [2024-05-17 09:03:27] local.DEBUG: combining groups [2024-05-17 09:06:44] local.DEBUG: combining groups [2024-05-17 09:06:49] local.DEBUG: combining groups [2024-05-17 09:06:54] local.DEBUG: combining groups [2024-05-17 09:06:57] local.DEBUG: combining groups [2024-05-17 09:07:01] local.DEBUG: combining groups [2024-05-17 09:07:04] local.DEBUG: combining groups [2024-05-17 09:08:10] local.DEBUG: combining groups [2024-05-17 09:08:27] local.DEBUG: combining groups [2024-05-17 09:08:35] local.DEBUG: combining groups [2024-05-17 09:08:36] local.DEBUG: combining groups [2024-05-17 09:08:38] local.DEBUG: combining groups [2024-05-17 09:08:40] local.DEBUG: combining groups [2024-05-17 09:08:41] local.DEBUG: combining groups [2024-05-17 09:08:44] local.DEBUG: combining groups [2024-05-17 09:09:19] local.DEBUG: combining groups [2024-05-17 09:18:22] local.DEBUG: combining groups [2024-05-17 09:19:12] local.DEBUG: combining groups [2024-05-17 09:19:34] local.DEBUG: combining groups [2024-05-17 09:20:12] local.DEBUG: combining groups [2024-05-17 09:22:56] local.DEBUG: combining groups [2024-05-17 09:23:03] local.DEBUG: combining groups [2024-05-17 09:23:49] local.DEBUG: combining groups [2024-05-17 09:24:20] local.DEBUG: combining groups [2024-05-17 09:36:11] local.DEBUG: combining groups [2024-05-17 09:41:05] local.DEBUG: combining groups [2024-05-17 15:31:57] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-05-17 15:31:57] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-05-17 15:36:59] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-05-17 15:37:01] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-05-17 20:02:58] local.DEBUG: combining groups [2024-05-18 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-18 10:07:36] local.DEBUG: combining groups [2024-05-18 12:06:31] local.DEBUG: combining groups [2024-05-18 12:49:58] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Qmoh0003@student.monash.edu","name":"Qistina"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Qistina,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">75105<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-18 12:49:58] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.223bb6d0-1515-11ef-9c70-525400103106.18f8bc07abd","object":"email"} [2024-05-18 12:50:39] local.DEBUG: combining groups [2024-05-18 12:52:31] local.DEBUG: combining groups [2024-05-18 14:11:19] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"demetricewhite@yahoo.com","name":"Demetrice White"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Demetrice White,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">87657<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-18 14:11:20] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.80025cf0-1520-11ef-ad5f-525400d4bb1c.18f8c0af83f","object":"email"} [2024-05-18 14:11:57] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 333 [2024-05-18 16:58:49] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"momofarrows6@gmail.com","name":"Courtney Parks"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Courtney Parks,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">06282<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-18 16:58:50] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e626c5e0-1537-11ef-93b2-525400dc08cf.18f8ca4513e","object":"email"} [2024-05-18 16:59:34] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 334 [2024-05-18 17:00:07] local.DEBUG: combining groups [2024-05-18 18:08:05] local.DEBUG: combining groups [2024-05-18 18:08:31] local.DEBUG: combining groups [2024-05-18 18:09:07] local.DEBUG: combining groups [2024-05-18 20:21:51] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"KyleHunter5@yahoo.com","name":"Kyle Jared Hunter"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kyle Jared Hunter,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">35638<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-18 20:21:52] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.43274d20-1554-11ef-a635-5254000b1a0e.18f8d5e32f2","object":"email"} [2024-05-18 20:22:23] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 336 [2024-05-18 20:23:08] local.DEBUG: combining groups [2024-05-18 21:17:08] local.DEBUG: combining groups [2024-05-18 21:23:26] local.DEBUG: combining groups [2024-05-18 21:23:36] local.DEBUG: combining groups [2024-05-18 21:23:39] local.DEBUG: combining groups [2024-05-18 21:23:54] local.DEBUG: combining groups [2024-05-18 21:25:49] local.DEBUG: combining groups [2024-05-18 21:30:34] local.DEBUG: combining groups [2024-05-18 21:31:41] local.DEBUG: combining groups [2024-05-19 03:15:41] local.DEBUG: combining groups [2024-05-19 05:13:49] local.DEBUG: combining groups [2024-05-19 05:16:37] local.DEBUG: Product Image Details: Array ( [product_id] => 266 [image_name] => 9115259451716095797.jpeg ) [2024-05-19 05:16:37] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 275 [2024-05-19 05:16:43] local.DEBUG: Product Image Details: Array ( [product_id] => 267 [image_name] => 16066055771716095803.jpeg ) [2024-05-19 05:16:43] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 275 [2024-05-19 05:16:46] local.DEBUG: Product Image Details: Array ( [product_id] => 268 [image_name] => 6438722521716095806.jpeg ) [2024-05-19 05:16:46] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 275 [2024-05-19 06:17:22] local.DEBUG: combining groups [2024-05-19 06:17:46] local.DEBUG: combining groups [2024-05-19 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-19 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'store_id' cannot be null (SQL: insert into `products` (`parent_product_id`, `product_type`, `group_id`, `product_category_id`, `product_name`, `description`, `product_image`, `product_sp`, `expires_on`, `is_featured`, `latitude`, `longitude`, `status`, `app_share_link`, `android_share_link`, `ios_share_link`, `created_by`, `deleted_at`, `created_at`, `updated_at`) values (201, REWARD, ?, 1, Skyhawk Model - Global, Skyhawk Model - Global, 17666028911712300185.png, 100, 2024-04-04, 0, ?, ?, ACTIVE, ?, ?, ?, ?, ?, 2024-05-19 07:05:02, 2024-05-19 07:05:02)) [2024-05-19 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/Product.php(253): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(441): App\Models\Product->cloneProduct() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(419): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-05-19 08:31:11] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sunnyca57@gmail.com","name":"Cynthia Weber Llamas"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Cynthia Weber Llamas,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">05541<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-19 08:31:12] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.26211f60-15ba-11ef-a354-525400d6cd4f.18f8ff9ec56","object":"email"} [2024-05-19 08:32:28] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 337 [2024-05-19 08:34:09] local.DEBUG: combining groups [2024-05-19 08:36:29] local.DEBUG: combining groups [2024-05-19 08:36:43] local.DEBUG: combining groups [2024-05-19 14:09:39] local.DEBUG: combining groups [2024-05-19 16:42:30] local.DEBUG: combining groups [2024-05-19 20:17:52] local.DEBUG: combining groups [2024-05-19 20:18:12] local.DEBUG: combining groups [2024-05-20 02:36:34] local.DEBUG: combining groups [2024-05-20 03:12:45] local.DEBUG: combining groups [2024-05-20 04:47:39] local.DEBUG: combining groups [2024-05-20 04:48:08] local.DEBUG: combining groups [2024-05-20 04:48:17] local.DEBUG: combining groups [2024-05-20 04:48:57] local.DEBUG: combining groups [2024-05-20 04:49:14] local.DEBUG: combining groups [2024-05-20 04:49:14] local.DEBUG: combining groups [2024-05-20 04:50:04] local.DEBUG: combining groups [2024-05-20 04:50:11] local.DEBUG: combining groups [2024-05-20 04:50:47] local.DEBUG: combining groups [2024-05-20 04:51:03] local.DEBUG: combining groups [2024-05-20 04:51:04] local.DEBUG: combining groups [2024-05-20 04:51:11] local.DEBUG: combining groups [2024-05-20 04:51:11] local.DEBUG: combining groups [2024-05-20 04:51:15] local.DEBUG: combining groups [2024-05-20 04:51:15] local.DEBUG: combining groups [2024-05-20 04:51:29] local.DEBUG: combining groups [2024-05-20 04:51:36] local.DEBUG: combining groups [2024-05-20 04:51:44] local.DEBUG: combining groups [2024-05-20 04:51:48] local.DEBUG: combining groups [2024-05-20 04:51:52] local.DEBUG: combining groups [2024-05-20 04:51:58] local.DEBUG: combining groups [2024-05-20 04:52:07] local.DEBUG: combining groups [2024-05-20 04:52:10] local.DEBUG: combining groups [2024-05-20 04:52:14] local.DEBUG: combining groups [2024-05-20 04:52:57] local.DEBUG: combining groups [2024-05-20 04:53:23] local.DEBUG: combining groups [2024-05-20 04:53:36] local.DEBUG: combining groups [2024-05-20 04:56:20] local.DEBUG: combining groups [2024-05-20 04:56:34] local.DEBUG: combining groups [2024-05-20 04:56:53] local.DEBUG: combining groups [2024-05-20 04:57:02] local.DEBUG: combining groups [2024-05-20 04:57:32] local.DEBUG: combining groups [2024-05-20 04:57:46] local.DEBUG: combining groups [2024-05-20 04:57:50] local.DEBUG: combining groups [2024-05-20 04:58:15] local.DEBUG: combining groups [2024-05-20 04:58:32] local.DEBUG: combining groups [2024-05-20 04:58:37] local.DEBUG: combining groups [2024-05-20 04:58:40] local.DEBUG: combining groups [2024-05-20 04:58:57] local.DEBUG: combining groups [2024-05-20 04:59:04] local.DEBUG: combining groups [2024-05-20 04:59:21] local.DEBUG: combining groups [2024-05-20 04:59:27] local.DEBUG: combining groups [2024-05-20 04:59:29] local.DEBUG: combining groups [2024-05-20 05:05:39] local.DEBUG: combining groups [2024-05-20 05:06:01] local.DEBUG: combining groups [2024-05-20 05:06:07] local.DEBUG: combining groups [2024-05-20 05:06:08] local.DEBUG: combining groups [2024-05-20 05:08:33] local.DEBUG: combining groups [2024-05-20 05:08:38] local.DEBUG: combining groups [2024-05-20 05:09:08] local.DEBUG: combining groups [2024-05-20 05:10:21] local.DEBUG: combining groups [2024-05-20 05:11:35] local.DEBUG: combining groups [2024-05-20 05:12:48] local.DEBUG: combining groups [2024-05-20 05:13:13] local.DEBUG: combining groups [2024-05-20 05:13:16] local.DEBUG: combining groups [2024-05-20 05:13:31] local.DEBUG: combining groups [2024-05-20 05:13:33] local.DEBUG: combining groups [2024-05-20 05:13:56] local.DEBUG: combining groups [2024-05-20 05:14:04] local.DEBUG: combining groups [2024-05-20 05:14:25] local.DEBUG: combining groups [2024-05-20 05:14:37] local.DEBUG: combining groups [2024-05-20 05:14:41] local.DEBUG: combining groups [2024-05-20 05:14:47] local.DEBUG: combining groups [2024-05-20 05:14:55] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-20 05:14:56] local.DEBUG: combining groups [2024-05-20 05:15:00] local.DEBUG: combining groups [2024-05-20 05:15:07] local.DEBUG: combining groups [2024-05-20 05:15:42] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-20 05:15:42] local.DEBUG: task is not assigned to user, but it is visible, so creating new assignment [2024-05-20 05:15:42] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Decode, Map & Read<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-20 05:15:43] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.01a9a680-1668-11ef-93b2-525400dc08cf.18f946d50e8","object":"email"} [2024-05-20 05:15:43] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 87 [2024-05-20 05:15:43] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gosiya.kartik@gmail.com","name":"Kartik Gosiya"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kartik Gosiya,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Decode, Map & Read<\\/li>\\n <li><strong>Assigned To:<\\/strong> hirax<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-20 05:15:43] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.02175c70-1668-11ef-a354-525400d6cd4f.18f946d53b7","object":"email"} [2024-05-20 05:15:44] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-20 05:16:05] local.DEBUG: combining groups [2024-05-20 05:16:20] local.DEBUG: combining groups [2024-05-20 05:16:22] local.DEBUG: combining groups [2024-05-20 05:16:36] local.DEBUG: combining groups [2024-05-20 05:17:53] local.DEBUG: combining groups [2024-05-20 05:17:58] local.DEBUG: combining groups [2024-05-20 05:18:17] local.DEBUG: combining groups [2024-05-20 05:18:30] local.DEBUG: Review allowed to UserId: 87 for ClaimId:33, Reason: TASK_REVIEW Role present [2024-05-20 05:18:30] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Decode, Map & Read<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-20 05:18:30] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.65748681-1668-11ef-9430-525400f92481.18f946fdee8","object":"email"} [2024-05-20 05:18:30] local.INFO: 0.10000000 points allocated for CLAIM_REVIEW_BY_PARENT to 87 [2024-05-20 05:18:52] local.DEBUG: combining groups [2024-05-20 05:18:59] local.DEBUG: combining groups [2024-05-20 05:24:31] local.DEBUG: combining groups [2024-05-20 05:26:32] local.DEBUG: combining groups [2024-05-20 05:26:36] local.DEBUG: combining groups [2024-05-20 05:26:42] local.DEBUG: combining groups [2024-05-20 05:26:45] local.DEBUG: combining groups [2024-05-20 05:26:48] local.DEBUG: combining groups [2024-05-20 05:26:51] local.DEBUG: combining groups [2024-05-20 05:26:57] local.DEBUG: combining groups [2024-05-20 05:27:20] local.DEBUG: combining groups [2024-05-20 05:27:47] local.DEBUG: combining groups [2024-05-20 05:31:17] local.DEBUG: combining groups [2024-05-20 05:36:07] local.DEBUG: combining groups [2024-05-20 05:37:32] local.DEBUG: combining groups [2024-05-20 05:39:44] local.DEBUG: combining groups [2024-05-20 05:50:35] local.DEBUG: combining groups [2024-05-20 05:51:43] local.DEBUG: combining groups [2024-05-20 05:52:54] local.DEBUG: combining groups [2024-05-20 05:53:14] local.DEBUG: combining groups [2024-05-20 05:53:19] local.DEBUG: combining groups [2024-05-20 05:53:28] local.DEBUG: combining groups [2024-05-20 05:54:20] local.DEBUG: combining groups [2024-05-20 05:54:34] local.DEBUG: combining groups [2024-05-20 05:54:46] local.DEBUG: combining groups [2024-05-20 05:54:51] local.DEBUG: combining groups [2024-05-20 05:56:03] local.DEBUG: combining groups [2024-05-20 05:56:34] local.DEBUG: combining groups [2024-05-20 05:56:47] local.DEBUG: combining groups [2024-05-20 05:56:56] local.DEBUG: combining groups [2024-05-20 05:58:00] local.DEBUG: combining groups [2024-05-20 05:59:14] local.DEBUG: combining groups [2024-05-20 06:00:55] local.DEBUG: combining groups [2024-05-20 06:00:56] local.DEBUG: combining groups [2024-05-20 06:01:16] local.DEBUG: combining groups [2024-05-20 06:01:40] local.DEBUG: combining groups [2024-05-20 06:01:46] local.DEBUG: combining groups [2024-05-20 06:01:50] local.DEBUG: combining groups [2024-05-20 06:02:00] local.DEBUG: combining groups [2024-05-20 06:02:11] local.DEBUG: combining groups [2024-05-20 06:02:11] local.DEBUG: combining groups [2024-05-20 06:02:12] local.DEBUG: combining groups [2024-05-20 06:02:21] local.DEBUG: combining groups [2024-05-20 06:02:22] local.DEBUG: combining groups [2024-05-20 06:02:40] local.DEBUG: combining groups [2024-05-20 06:02:41] local.DEBUG: combining groups [2024-05-20 06:02:50] local.DEBUG: combining groups [2024-05-20 06:02:51] local.DEBUG: combining groups [2024-05-20 06:03:01] local.DEBUG: combining groups [2024-05-20 06:03:01] local.DEBUG: combining groups [2024-05-20 06:03:06] local.DEBUG: combining groups [2024-05-20 06:03:06] local.DEBUG: combining groups [2024-05-20 06:30:10] local.DEBUG: combining groups [2024-05-20 06:31:51] local.DEBUG: combining groups [2024-05-20 06:39:12] local.DEBUG: combining groups [2024-05-20 06:42:17] local.DEBUG: combining groups [2024-05-20 06:43:51] local.DEBUG: combining groups [2024-05-20 06:45:18] local.DEBUG: combining groups [2024-05-20 06:45:48] local.DEBUG: combining groups [2024-05-20 06:49:10] local.DEBUG: combining groups [2024-05-20 06:50:19] local.DEBUG: combining groups [2024-05-20 06:50:35] local.DEBUG: combining groups [2024-05-20 06:50:43] local.DEBUG: combining groups [2024-05-20 06:51:11] local.DEBUG: combining groups [2024-05-20 06:51:28] local.DEBUG: combining groups [2024-05-20 06:51:32] local.DEBUG: combining groups [2024-05-20 06:54:07] local.DEBUG: combining groups [2024-05-20 06:54:43] local.DEBUG: combining groups [2024-05-20 06:55:37] local.DEBUG: combining groups [2024-05-20 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-20 07:19:45] local.DEBUG: combining groups [2024-05-20 07:19:45] local.DEBUG: combining groups [2024-05-20 07:20:08] local.DEBUG: combining groups [2024-05-20 07:20:12] local.DEBUG: combining groups [2024-05-20 07:20:22] local.DEBUG: combining groups [2024-05-20 07:20:44] local.DEBUG: combining groups [2024-05-20 07:20:59] local.DEBUG: combining groups [2024-05-20 07:21:09] local.DEBUG: combining groups [2024-05-20 07:21:28] local.DEBUG: combining groups [2024-05-20 07:21:36] local.DEBUG: combining groups [2024-05-20 07:21:41] local.DEBUG: combining groups [2024-05-20 07:23:00] local.DEBUG: combining groups [2024-05-20 07:23:48] local.DEBUG: combining groups [2024-05-20 07:25:33] local.ERROR: exception occured while adding task: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cfc`.`tasks`, CONSTRAINT `tasks_ibfk_3` FOREIGN KEY (`product_id`) REFERENCES `products` (`product_id`) ON DELETE CASCADE ON UPDATE NO ACTION) (SQL: insert into `tasks` (`parent_task_id`, `group_id`, `task_title`, `description`, `goal_id`, `task_sp`, `task_type`, `product_id`, `due_by`, `task_status`, `is_featured`, `created_by`, `updated_at`, `created_at`) values (?, 169, new for tuit notifications, Testing, 11, 0, ADDITIONAL_REWARD, 0, ?, PENDING, 0, 87, 2024-05-20 07:25:33, 2024-05-20 07:25:33)) [2024-05-20 07:25:33] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(986): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/helpers.php(306): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(987): tap() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2330): Illuminate\Database\Eloquent\Model->forwardCallTo() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2342): Illuminate\Database\Eloquent\Model->__call() #15 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(133): Illuminate\Database\Eloquent\Model::__callStatic() #16 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ParentController.php(282): App\V2\Services\TaskService->createTask() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->create_tasks() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #49 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #50 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #51 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #52 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #53 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #54 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #55 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #56 {main} [2024-05-20 07:25:36] local.DEBUG: combining groups [2024-05-20 07:25:53] local.DEBUG: combining groups [2024-05-20 07:25:58] local.DEBUG: combining groups [2024-05-20 07:25:59] local.DEBUG: combining groups [2024-05-20 07:28:28] local.ERROR: exception occured while adding task: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cfc`.`tasks`, CONSTRAINT `tasks_ibfk_3` FOREIGN KEY (`product_id`) REFERENCES `products` (`product_id`) ON DELETE CASCADE ON UPDATE NO ACTION) (SQL: insert into `tasks` (`parent_task_id`, `group_id`, `task_title`, `description`, `goal_id`, `task_sp`, `task_type`, `product_id`, `due_by`, `task_status`, `is_featured`, `created_by`, `updated_at`, `created_at`) values (?, 69, test tuit, Testing, 11, 0, ADDITIONAL_REWARD, 0, ?, PENDING, 0, 87, 2024-05-20 07:28:28, 2024-05-20 07:28:28)) [2024-05-20 07:28:28] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(986): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/helpers.php(306): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(987): tap() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2330): Illuminate\Database\Eloquent\Model->forwardCallTo() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2342): Illuminate\Database\Eloquent\Model->__call() #15 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(133): Illuminate\Database\Eloquent\Model::__callStatic() #16 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ParentController.php(282): App\V2\Services\TaskService->createTask() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->create_tasks() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #49 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #50 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #51 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #52 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #53 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #54 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #55 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #56 {main} [2024-05-20 07:32:54] local.DEBUG: combining groups [2024-05-20 07:32:58] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> test tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-20 07:32:59] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2e96d4c0-167b-11ef-ad5f-525400d4bb1c.18f94eafc0c","object":"email"} [2024-05-20 07:32:59] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> test tuit<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-20 07:32:59] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2ec67040-167b-11ef-9c70-525400103106.18f94eafd44","object":"email"} [2024-05-20 07:32:59] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 87 [2024-05-20 07:33:13] local.DEBUG: combining groups [2024-05-20 07:33:19] local.DEBUG: combining groups [2024-05-20 07:35:40] local.DEBUG: combining groups [2024-05-20 07:35:40] local.DEBUG: combining groups [2024-05-20 07:35:44] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> new task noti check<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-20 07:35:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.911cd8b0-167b-11ef-9c70-525400103106.18f94ed81bb","object":"email"} [2024-05-20 07:35:44] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> new task noti check<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-20 07:35:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.914ac680-167b-11ef-937a-525400ae9113.18f94ed82e8","object":"email"} [2024-05-20 07:35:44] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 87 [2024-05-20 07:36:16] local.DEBUG: combining groups [2024-05-20 07:36:19] local.DEBUG: combining groups [2024-05-20 07:36:37] local.DEBUG: combining groups [2024-05-20 07:36:38] local.DEBUG: combining groups [2024-05-20 07:42:04] local.DEBUG: combining groups [2024-05-20 08:37:23] local.DEBUG: combining groups [2024-05-20 08:37:23] local.DEBUG: combining groups [2024-05-20 08:54:27] local.DEBUG: combining groups [2024-05-20 08:54:50] local.DEBUG: combining groups [2024-05-20 08:55:10] local.DEBUG: combining groups [2024-05-20 08:57:53] local.DEBUG: combining groups [2024-05-20 08:59:19] local.DEBUG: combining groups [2024-05-20 09:11:26] local.DEBUG: combining groups [2024-05-20 17:05:34] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 219 [2024-05-21 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-21 11:17:17] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"amanchild@gmail.com","name":"Aman Child"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Aman Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Buy groceries for this week<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman Kumar<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-21 11:17:23] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b2408a30-1763-11ef-9b24-5254008f5018.18f9adeca53","object":"email"} [2024-05-21 11:17:23] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 110 [2024-05-21 12:03:47] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-21 12:04:51] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-21 12:04:51] local.DEBUG: task is not assigned to user, but it is visible, so creating new assignment [2024-05-21 12:04:51] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"amanchild@gmail.com","name":"Aman Child"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Aman Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Decode, Map & Read<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman Kumar<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-21 12:04:51] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5412dfb0-176a-11ef-937a-525400ae9113.18f9b0a412b","object":"email"} [2024-05-21 12:04:52] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 110 [2024-05-21 12:04:52] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"eyeclik@gmail.com","name":"Aman Kumar"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Aman Kumar,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Decode, Map & Read<\\/li>\\n <li><strong>Assigned To:<\\/strong> Aman Child<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-21 12:04:52] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5475e740-176a-11ef-a354-525400d6cd4f.18f9b0a43b4","object":"email"} [2024-05-21 12:04:53] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-21 12:05:21] local.DEBUG: Review allowed to UserId: 110 for ClaimId:34, Reason: TASK_REVIEW Role present [2024-05-21 12:05:21] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"amanchild@gmail.com","name":"Aman Child"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Aman Child,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Decode, Map & Read<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-21 12:05:21] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.65e9d450-176a-11ef-964f-525400dc08cf.18f9b0ab615","object":"email"} [2024-05-21 12:05:21] local.INFO: 0.10000000 points allocated for CLAIM_REVIEW_BY_PARENT to 110 [2024-05-21 12:27:38] local.DEBUG: task visible_to: [2024-05-21 12:28:20] local.DEBUG: task visible_to: [2024-05-21 12:28:27] local.DEBUG: task visible_to: [2024-05-21 12:29:29] local.DEBUG: Current Balance: 0 [2024-05-21 12:30:10] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-21 12:42:54] local.DEBUG: task visible_to: [2024-05-21 12:44:43] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-21 16:08:15] local.DEBUG: Current Balance: 50 [2024-05-21 16:08:25] local.DEBUG: Current Balance: 50 [2024-05-21 17:51:11] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"buggybug2210@gmail.com","name":"buggybug2210@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello buggybug2210@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Cambria Wright<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-21 17:51:12] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b6504110-179a-11ef-a635-5254000b1a0e.18f9c4757a1","object":"email"} [2024-05-21 20:24:18] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"soundlikescott@gmail.com","name":"Brandon Scott"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Brandon Scott,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">16085<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-21 20:24:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.20116ab0-17b0-11ef-937a-525400ae9113.18f9cd3acdb","object":"email"} [2024-05-21 20:24:52] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 338 [2024-05-21 21:27:39] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ladrikiuspage25@gmail.com","name":"LaDrikius Page"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello LaDrikius Page,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">67781<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-21 21:27:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f37c84e0-17b8-11ef-964f-525400dc08cf.18f9d0d842e","object":"email"} [2024-05-21 21:27:59] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 339 [2024-05-22 00:34:18] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"anle323@yahoo.com","name":"An Le"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello An Le,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">06914<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-22 00:34:23] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.09699f30-17d3-11ef-a635-5254000b1a0e.18f9db878a3","object":"email"} [2024-05-22 00:34:56] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 340 [2024-05-22 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-22 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (312, 297, 220, PENDING, ?, ?, ?, 2024-05-22 07:05:02, 2024-05-22 07:05:02)) [2024-05-22 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(475): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(419): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-05-22 08:59:51] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"cdown87@yahoo.com","name":"Delvin Nix"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Delvin Nix,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">31910<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-22 08:59:51] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.a62f6e30-1819-11ef-9430-525400f92481.18f9f873c93","object":"email"} [2024-05-22 09:01:16] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 341 [2024-05-22 13:06:46] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"belize357@gmail.com","name":"Ian Bailey"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Ian Bailey,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">27803<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-22 13:06:46] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.24d3a810-183c-11ef-a354-525400d6cd4f.18fa0694d11","object":"email"} [2024-05-22 13:07:16] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 342 [2024-05-22 17:06:51] local.ERROR: error while retriving price from dextools [2024-05-22 17:06:51] local.ERROR: cURL error 28: Resolving timed out after 10000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://public-api.dextools.io/trial/v2/pool/ether/0xe0fca1c1f2e6b07a9096723ceac992e721a54e7c/price [2024-05-22 17:06:51] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/helpers.php(247): Illuminate\Http\Client\PendingRequest->Illuminate\Http\Client\{closure}() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Client/PendingRequest.php(863): retry() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Client/PendingRequest.php(700): Illuminate\Http\Client\PendingRequest->send() #3 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TUITService.php(173): Illuminate\Http\Client\PendingRequest->get() #4 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TUITService.php(154): App\V2\Services\TUITService->getPrice() #5 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ParentController.php(851): App\V2\Services\TUITService->getTUIT_To_USDT() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->getUserDashboardForApp() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #44 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #45 {main} [2024-05-22 17:24:49] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"garwinage@yahoo.com","name":"Garblah Page"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Garblah Page,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">49994<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-22 17:24:49] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.318e6f80-1860-11ef-9430-525400f92481.18fa1558e78","object":"email"} [2024-05-22 17:25:22] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 343 [2024-05-23 02:45:53] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"yasmeenegreen@gmail.com","name":"Yasmeen Green"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Yasmeen Green,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">79095<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 02:45:54] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.92e0b1f0-18ae-11ef-aa11-5254008f5018.18fa3573a8f","object":"email"} [2024-05-23 02:46:19] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 345 [2024-05-23 05:29:14] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"maryann.gorospe75@gmail.com","name":"Mary Ann G. De Castro"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Mary Ann G. De Castro,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">80096<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 05:29:14] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.64752f00-18c5-11ef-a354-525400d6cd4f.18fa3ecc5f0","object":"email"} [2024-05-23 05:53:42] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"maryann.gorospe75@gmail.com","name":"Mary Ann G. De Castro"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>40911<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 05:53:42] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cf740df0-18c8-11ef-8c56-525400fa05f6.18fa4032c4f","object":"email"} [2024-05-23 05:54:07] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 346 [2024-05-23 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-23 12:17:00] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fireandphoenix5@gmail.com","name":"Michael Powell"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Michael Powell,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">24008<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 12:17:00] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5b74b630-18fe-11ef-908e-525400d6cd4f.18fa5621913","object":"email"} [2024-05-23 12:18:08] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fireandphoenix5@gmail.com","name":"Michael Powell"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>64827<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 12:18:09] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.842bd680-18fe-11ef-9435-525400d4bb1c.18fa56323e8","object":"email"} [2024-05-23 12:19:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fireandphoenix5@gmail.com","name":"Michael Powell"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>72206<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 12:19:25] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b1f10fe0-18fe-11ef-8900-52540064429e.18fa5644fde","object":"email"} [2024-05-23 12:22:34] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fireandphoenix5@gmail.com","name":"Michael Powell"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>11613<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 12:22:34] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.22a43a50-18ff-11ef-8900-52540064429e.18fa5673275","object":"email"} [2024-05-23 12:23:37] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fireandphoenix5@gmail.com","name":"Michael Powell"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>64930<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 12:23:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.48386fc0-18ff-11ef-bebb-525400dc08cf.18fa56828bc","object":"email"} [2024-05-23 14:30:51] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gushaca@yahoo.com","name":"Gregory Gusha"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>31386<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 14:30:52] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0ea27140-1911-11ef-ab0b-5254000b1a0e.18fa5dca654","object":"email"} [2024-05-23 14:31:30] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 259 [2024-05-23 14:32:11] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gushaca@yahoo.com","name":"Gregory Gusha"}}],"subject":"Password Reset Successful - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset Successful - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset Successful<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Gregory Gusha,<\\/p>\\n <p>Your password has been successfully reset for your Coins for College account.<\\/p>\\n <p>If you did not initiate this password reset or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 14:32:11] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3dc40650-1911-11ef-8710-525400fa05f6.18fa5dddb35","object":"email"} [2024-05-23 15:03:56] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ncb312@nyu.edu","name":"Natalie Hornick"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Natalie Hornick,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">40100<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 15:03:56] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ad8c85d1-1915-11ef-908e-525400d6cd4f.18fa5faeea7","object":"email"} [2024-05-23 16:07:19] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 351 [2024-05-23 16:08:13] local.DEBUG: Current Balance: 0 [2024-05-23 16:40:38] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"patriciasamuel@yahoo.com","name":"Patricia Robbins"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Patricia Robbins,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">98808<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 16:40:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2f83c7d0-1923-11ef-bebb-525400dc08cf.18fa65374cd","object":"email"} [2024-05-23 16:41:35] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 353 [2024-05-23 17:29:05] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"dgardn13@aol.com","name":"Dominique Nicole Gardner"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dominique Nicole Gardner,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">86248<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 17:29:06] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f4b0b670-1929-11ef-aef1-525400ae9113.18fa67fd357","object":"email"} [2024-05-23 17:29:27] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 354 [2024-05-23 17:35:41] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"clintbyars@gmail.com","name":"Clint Byars"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Clint Byars,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">55141<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 17:35:42] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e0be8d80-192a-11ef-aef1-525400ae9113.18fa685de58","object":"email"} [2024-05-23 17:36:19] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 355 [2024-05-23 17:48:20] local.DEBUG: Current Balance: 0 [2024-05-23 18:39:01] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"v_osit@yahoo.com","name":"Valentino Osit"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Valentino Osit,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">08502<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 18:39:02] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b9960d60-1933-11ef-b139-525400f92481.18fa6bfd936","object":"email"} [2024-05-23 18:39:51] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 357 [2024-05-23 19:44:06] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jsamuel567@yahoo.com","name":"Joshua"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Joshua,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">01179<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 19:44:06] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d12575c0-193c-11ef-aef1-525400ae9113.18fa6fb6f1c","object":"email"} [2024-05-23 19:44:39] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jsamuel567@yahoo.com","name":"Joshua"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>48944<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 19:44:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e47d6510-193c-11ef-8900-52540064429e.18fa6fbede1","object":"email"} [2024-05-23 19:45:11] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 358 [2024-05-23 23:32:00] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"krystal.aguilar0514@gmail.com","name":"Krystal Aguilar"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Krystal Aguilar,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">81813<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-23 23:32:00] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.a76b56d0-195c-11ef-8710-525400fa05f6.18fa7cc14bd","object":"email"} [2024-05-23 23:32:26] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 360 [2024-05-24 00:36:36] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"prdivamichelle@gmail.com","name":"Michelle Murphy"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Michelle Murphy,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">90188<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 00:36:36] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.adaca9a0-1965-11ef-8710-525400fa05f6.18fa807393a","object":"email"} [2024-05-24 00:37:13] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 362 [2024-05-24 02:05:14] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Ken.seeley@yahoo.com","name":"Kenneth"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kenneth,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">84079<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 02:05:14] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0f41ee80-1972-11ef-8710-525400fa05f6.18fa8585d68","object":"email"} [2024-05-24 02:05:59] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 364 [2024-05-24 04:15:23] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"tank_seeley@yahoo.com","name":"Dylan James Seeley"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dylan James Seeley,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">91027<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 04:15:23] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3deceed0-1984-11ef-aef1-525400ae9113.18fa8cf863d","object":"email"} [2024-05-24 04:15:47] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 365 [2024-05-24 04:17:04] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-24 05:36:34] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"crystalsamuel7@yahoo.com","name":"Crystal Samuel"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Crystal Samuel,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">40185<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 05:36:34] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.9513b850-198f-11ef-9435-525400d4bb1c.18fa919d855","object":"email"} [2024-05-24 05:37:18] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 366 [2024-05-24 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-24 14:20:30] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"aileen.sanchezhimes@gmail.com","name":"Aileen Sanchez"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Aileen Sanchez,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">98258<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 14:20:31] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c6e8f180-19d8-11ef-8900-52540064429e.18faaf98898","object":"email"} [2024-05-24 14:22:08] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"aileen.sanchezhimes@gmail.com","name":"Aileen Sanchez"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>08024<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 14:22:17] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.06595490-19d9-11ef-ab0b-5254000b1a0e.18faafb2859","object":"email"} [2024-05-24 14:22:38] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 368 [2024-05-24 17:33:34] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"mlovemiers@yahoo.com","name":"Mary Love Currie"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Mary Love Currie,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">47083<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 17:33:35] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.bf5e4b70-19f3-11ef-b139-525400f92481.18fabaa49a7","object":"email"} [2024-05-24 17:34:14] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 369 [2024-05-24 19:32:47] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-24 19:32:52] local.DEBUG: task visible_to: [2024-05-24 19:33:06] local.DEBUG: Review Not allowed for UserId: 312 for ClaimId:32, Reason: User is not the owner of the group [2024-05-24 19:33:12] local.DEBUG: Review Not allowed for UserId: 312 for ClaimId:31, Reason: User is not the owner of the group [2024-05-24 19:33:52] local.DEBUG: task visible_to: [2024-05-24 19:34:01] local.DEBUG: task visible_to: [2024-05-24 19:35:04] local.DEBUG: task visible_to: [2024-05-24 19:35:04] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-05-24 19:35:04] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 275 [2024-05-24 19:35:04] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fmfegurgur@gmail.com","name":"Francisco Fegurgur"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Francisco Fegurgur,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> homework<\\/li>\\n <li><strong>Assigned To:<\\/strong> Emelia Fegurgur<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 19:35:04] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b86dce10-1a04-11ef-b139-525400f92481.18fac198571","object":"email"} [2024-05-24 19:35:05] local.DEBUG: task visible_to: [2024-05-24 19:35:11] local.DEBUG: task visible_to: [2024-05-24 19:35:16] local.DEBUG: task visible_to: [2024-05-24 19:35:16] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-05-24 19:35:16] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 275 [2024-05-24 19:35:16] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fmfegurgur@gmail.com","name":"Francisco Fegurgur"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Francisco Fegurgur,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Daily attendance<\\/li>\\n <li><strong>Assigned To:<\\/strong> Emelia Fegurgur<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 19:35:17] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.bfae0960-1a04-11ef-9435-525400d4bb1c.18fac19b4f6","object":"email"} [2024-05-24 19:35:17] local.DEBUG: task visible_to: [2024-05-24 19:35:29] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-24 20:06:56] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-24 20:06:56] local.DEBUG: task is not assigned to user, but it is visible, so creating new assignment [2024-05-24 20:06:56] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Decode, Map & Read<\\/li>\\n <li><strong>Assigned By:<\\/strong> Francisco Fegurgur<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 20:06:56] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2c0556f0-1a09-11ef-9435-525400d4bb1c.18fac36b1df","object":"email"} [2024-05-24 20:06:56] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 275 [2024-05-24 20:06:56] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fmfegurgur@gmail.com","name":"Francisco Fegurgur"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Francisco Fegurgur,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Decode, Map & Read<\\/li>\\n <li><strong>Assigned To:<\\/strong> Emelia Fegurgur<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 20:06:57] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2c3ce1b0-1a09-11ef-908e-525400d6cd4f.18fac36b34b","object":"email"} [2024-05-24 20:06:57] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-24 20:30:20] local.DEBUG: Review Not allowed for UserId: 312 for ClaimId:37, Reason: User is not the owner of the group [2024-05-24 20:39:21] local.DEBUG: Review allowed to UserId: 275 for ClaimId:37, Reason: User is the owner of the group, and claim is also in the same group [2024-05-24 20:39:21] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Decode, Map & Read<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 20:39:21] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b3741140-1a0d-11ef-aef1-525400ae9113.18fac546054","object":"email"} [2024-05-24 20:39:22] local.INFO: 0.10000000 points allocated for CLAIM_REVIEW_BY_PARENT to 275 [2024-05-24 20:39:25] local.DEBUG: Review allowed to UserId: 275 for ClaimId:35, Reason: User is the owner of the group, and task belongs to the same group [2024-05-24 20:39:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> homework<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 20:39:25] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b59606e0-1a0d-11ef-8f25-5254008f5018.18fac546e4e","object":"email"} [2024-05-24 20:39:25] local.INFO: 0.10000000 points allocated for CLAIM_REVIEW_BY_PARENT to 275 [2024-05-24 21:56:42] local.DEBUG: Current Balance: 50 [2024-05-24 22:10:07] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"marksho777@gmail.com","name":"Mark Sho"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>94064<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 22:10:07] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.61502950-1a1a-11ef-9435-525400d4bb1c.18faca77865","object":"email"} [2024-05-24 22:10:56] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 179 [2024-05-24 22:11:03] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"marksho777@gmail.com","name":"Mark Sho"}}],"subject":"Password Reset Successful - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset Successful - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset Successful<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Mark Sho,<\\/p>\\n <p>Your password has been successfully reset for your Coins for College account.<\\/p>\\n <p>If you did not initiate this password reset or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-24 22:11:03] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.82ccb3a0-1a1a-11ef-8710-525400fa05f6.18faca853da","object":"email"} [2024-05-25 01:22:34] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"tsmith3049@gmail.com","name":"Terry Smith"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Terry Smith,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">97361<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-25 01:22:35] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.442e2b40-1a35-11ef-aef1-525400ae9113.18fad57abf4","object":"email"} [2024-05-25 01:23:00] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 371 [2024-05-25 01:52:08] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fireandphoenix5@gmail.com","name":"Michael Powell"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>56066<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-25 01:52:09] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.657fff40-1a39-11ef-8710-525400fa05f6.18fad72bd34","object":"email"} [2024-05-25 01:52:45] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 348 [2024-05-25 02:02:35] local.DEBUG: Product Image Details: Array ( [product_id] => 272 [image_name] => 12500482071716602554.jpeg ) [2024-05-25 02:02:35] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 275 [2024-05-25 02:02:42] local.DEBUG: Product Image Details: Array ( [product_id] => 273 [image_name] => 7297259351716602562.jpeg ) [2024-05-25 02:02:42] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 275 [2024-05-25 02:05:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Yardwork<\\/li>\\n <li><strong>Assigned By:<\\/strong> Francisco Fegurgur<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-25 02:05:12] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.389dc0f0-1a3b-11ef-b139-525400f92481.18fad7eb27f","object":"email"} [2024-05-25 02:05:12] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 275 [2024-05-25 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-26 01:12:23] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 371 [2024-05-26 06:20:23] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"blessta89@yahoo.com","name":"blessta89@yahoo.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello blessta89@yahoo.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Garblah Page<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-26 06:20:23] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.08f41370-1b28-11ef-bc24-5254000b1a0e.18fb38eae27","object":"email"} [2024-05-26 06:27:20] local.DEBUG: Product Image Details: Array ( [product_id] => 275 [image_name] => 9158184071716704840.png ) [2024-05-26 06:27:20] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 343 [2024-05-26 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-26 15:16:51] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"lindakowalk4@gmail.com","name":"Linda Kowalk"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Linda Kowalk,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">03407<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-26 15:16:51] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.fa807900-1b72-11ef-9106-525400ae9113.18fb579d490","object":"email"} [2024-05-27 00:28:57] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"rhyanpared@icloud.com","name":"Rhyan Pared"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Rhyan Pared,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">16353<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-27 00:28:58] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1b71ac40-1bc0-11ef-9170-5254008f5018.18fb7734d04","object":"email"} [2024-05-27 00:29:21] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 373 [2024-05-27 01:52:26] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"d.trumendis@gmail.com","name":"Darell sanders"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Darell sanders,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">81841<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-27 01:52:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c4c01b50-1bcb-11ef-a2ac-525400d4bb1c.18fb7bfb985","object":"email"} [2024-05-27 01:53:16] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 375 [2024-05-27 03:56:02] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"zaiahvinahbree@gmail.com","name":"Shereka Lewis"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Shereka Lewis,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">53724<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-27 03:56:02] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.091331f0-1bdd-11ef-9278-525400fa05f6.18fb830e28f","object":"email"} [2024-05-27 03:56:24] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 376 [2024-05-27 05:27:32] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ts04181984@gmail.com","name":"Timothy seals"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Timothy seals,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">98215<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-27 05:27:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d158c380-1be9-11ef-bc24-5254000b1a0e.18fb884a7b8","object":"email"} [2024-05-27 05:27:53] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 377 [2024-05-27 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-27 09:55:24] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.gosiya.pro@gmail.com","name":"kartik g"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>50055<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-27 09:55:24] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3cf06790-1c0f-11ef-aa08-525400f92481.18fb979e489","object":"email"} [2024-05-27 09:55:47] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 307 [2024-05-27 10:21:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:21:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:21:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:21:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:21:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:21:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:22:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 10:22:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 10:22:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 10:22:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 10:22:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 10:22:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 10:22:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 10:22:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:22:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:22:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:22:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:22:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:22:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:22:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 10:22:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 10:22:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 10:27:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:27:21] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => -1 ) [2024-05-27 10:27:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:27:21] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-05-27 10:27:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:27:21] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => 1 [13] => 88 [14] => -1 ) [2024-05-27 10:27:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:27:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 10:27:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:27:21] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => 88 [13] => -1 ) [2024-05-27 10:27:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:27:22] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-05-27 10:27:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 10:27:55] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => 90 [8] => GLOBAL [9] => GLOBAL_FOR_PARENT [10] => GLOBAL_FOR_PARENT_AND_CHILD [11] => ZIPCODE_PARENT [12] => ZIPCODE_PARENT_AND_CHILD [13] => SELECTED_PARENT [14] => COUNTRY_PARENT [15] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 10:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 10:27:55] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 ) [2024-05-27 10:27:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 10:27:55] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-27 10:27:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:27:57] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => -1 ) [2024-05-27 10:27:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:27:57] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-05-27 10:27:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:27:57] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => 1 [13] => 88 [14] => -1 ) [2024-05-27 10:27:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:27:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 10:27:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:27:58] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => 88 [13] => -1 ) [2024-05-27 10:27:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:27:58] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-05-27 10:28:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 10:28:07] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => 90 [8] => GLOBAL [9] => GLOBAL_FOR_PARENT [10] => GLOBAL_FOR_PARENT_AND_CHILD [11] => ZIPCODE_PARENT [12] => ZIPCODE_PARENT_AND_CHILD [13] => SELECTED_PARENT [14] => COUNTRY_PARENT [15] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 10:28:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 10:28:07] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => 90 [8] => GLOBAL [9] => GLOBAL_FOR_PARENT [10] => GLOBAL_FOR_PARENT_AND_CHILD [11] => ZIPCODE_PARENT [12] => ZIPCODE_PARENT_AND_CHILD [13] => SELECTED_PARENT [14] => COUNTRY_PARENT [15] => COUNTRY_PARENT_AND_CHILD [16] => 1 ) [2024-05-27 10:28:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 10:28:07] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => 90 [8] => GLOBAL [9] => GLOBAL_FOR_PARENT [10] => GLOBAL_FOR_PARENT_AND_CHILD [11] => ZIPCODE_PARENT [12] => ZIPCODE_PARENT_AND_CHILD [13] => SELECTED_PARENT [14] => COUNTRY_PARENT [15] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 10:42:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 10:42:34] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 90 [12] => GLOBAL [13] => GLOBAL_FOR_PARENT [14] => GLOBAL_FOR_PARENT_AND_CHILD [15] => ZIPCODE_PARENT [16] => ZIPCODE_PARENT_AND_CHILD [17] => SELECTED_PARENT [18] => COUNTRY_PARENT [19] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 10:42:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 10:42:34] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-27 10:42:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 10:42:34] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-27 10:42:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:42:37] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-05-27 10:42:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:42:37] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-05-27 10:42:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:42:37] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 88 [18] => -1 ) [2024-05-27 10:42:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:42:37] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 10:42:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:42:37] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 88 [17] => -1 ) [2024-05-27 10:42:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:42:38] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-05-27 10:42:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 10:42:44] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 90 [12] => GLOBAL [13] => GLOBAL_FOR_PARENT [14] => GLOBAL_FOR_PARENT_AND_CHILD [15] => ZIPCODE_PARENT [16] => ZIPCODE_PARENT_AND_CHILD [17] => SELECTED_PARENT [18] => COUNTRY_PARENT [19] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 10:42:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 10:42:44] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 90 [12] => GLOBAL [13] => GLOBAL_FOR_PARENT [14] => GLOBAL_FOR_PARENT_AND_CHILD [15] => ZIPCODE_PARENT [16] => ZIPCODE_PARENT_AND_CHILD [17] => SELECTED_PARENT [18] => COUNTRY_PARENT [19] => COUNTRY_PARENT_AND_CHILD [20] => 1 ) [2024-05-27 10:42:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 10:42:44] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 90 [12] => GLOBAL [13] => GLOBAL_FOR_PARENT [14] => GLOBAL_FOR_PARENT_AND_CHILD [15] => ZIPCODE_PARENT [16] => ZIPCODE_PARENT_AND_CHILD [17] => SELECTED_PARENT [18] => COUNTRY_PARENT [19] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 10:57:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 10:57:12] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 88 [12] => 69 [13] => GLOBAL [14] => GLOBAL_FOR_PARENT [15] => GLOBAL_FOR_PARENT_AND_CHILD [16] => ZIPCODE_PARENT [17] => ZIPCODE_PARENT_AND_CHILD [18] => SELECTED_PARENT [19] => COUNTRY_PARENT [20] => COUNTRY_PARENT_AND_CHILD [21] => ZIPCODE_PARENT_AND_CHILD [22] => ZIPCODE [23] => 00601 [24] => COUNTRY_PARENT_AND_CHILD [25] => COUNTRY [26] => United States [27] => GLOBAL [28] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 10:57:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-27 10:57:12] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => United States ) [2024-05-27 10:57:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:57:12] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-27 10:57:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:57:14] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => United States [10] => 1 ) [2024-05-27 10:57:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:57:14] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 10:57:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-27 10:57:14] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => United States ) [2024-05-27 10:57:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:57:15] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 259 [2] => 256 [3] => 248 [4] => 244 [5] => 233 [6] => 231 [7] => 227 [8] => 225 [9] => 223 [10] => 208 [11] => 203 [12] => 200 [13] => 199 [14] => 198 [15] => 187 [16] => 186 [17] => 179 [18] => 173 [19] => 172 ) [2024-05-27 10:59:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 10:59:35] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 46 [3] => 46 [4] => 28 [5] => GLOBAL [6] => GLOBAL_FOR_PARENT [7] => GLOBAL_FOR_PARENT_AND_CHILD [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => SELECTED_PARENT [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => ZIPCODE_PARENT_AND_CHILD [14] => ZIPCODE [15] => GLOBAL [16] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 10:59:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-27 10:59:35] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 10:59:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:59:35] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-27 10:59:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 10:59:35] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 46 [3] => 46 [4] => 28 [5] => GLOBAL [6] => GLOBAL_FOR_PARENT [7] => GLOBAL_FOR_PARENT_AND_CHILD [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => SELECTED_PARENT [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => ZIPCODE_PARENT_AND_CHILD [14] => ZIPCODE [15] => GLOBAL [16] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 10:59:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-27 10:59:35] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 10:59:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:59:35] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-27 10:59:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 10:59:38] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-27 10:59:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:59:38] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 10:59:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-27 10:59:38] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 10:59:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 10:59:38] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 [12] => 121 [13] => 120 [14] => 119 [15] => 118 [16] => 117 [17] => 116 [18] => 115 [19] => 109 ) [2024-05-27 10:59:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-27 10:59:54] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 46 [3] => 46 [4] => 28 [5] => GLOBAL [6] => GLOBAL_FOR_PARENT [7] => GLOBAL_FOR_PARENT_AND_CHILD [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => SELECTED_PARENT [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => ZIPCODE_PARENT_AND_CHILD [14] => ZIPCODE [15] => GLOBAL [16] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 10:59:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-27 10:59:54] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 46 [3] => 46 [4] => 28 [5] => GLOBAL [6] => GLOBAL_FOR_PARENT [7] => GLOBAL_FOR_PARENT_AND_CHILD [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => SELECTED_PARENT [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => ZIPCODE_PARENT_AND_CHILD [14] => ZIPCODE [15] => GLOBAL [16] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:02:31] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-27 11:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:02:31] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 11:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-27 11:02:31] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:02:31] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-27 11:02:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 11:02:59] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 88 [12] => 69 [13] => GLOBAL [14] => GLOBAL_FOR_PARENT [15] => GLOBAL_FOR_PARENT_AND_CHILD [16] => ZIPCODE_PARENT [17] => ZIPCODE_PARENT_AND_CHILD [18] => SELECTED_PARENT [19] => COUNTRY_PARENT [20] => COUNTRY_PARENT_AND_CHILD [21] => ZIPCODE_PARENT_AND_CHILD [22] => ZIPCODE [23] => 00601 [24] => COUNTRY_PARENT_AND_CHILD [25] => COUNTRY [26] => United States [27] => GLOBAL [28] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:02:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-27 11:02:59] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => United States ) [2024-05-27 11:02:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:02:59] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-27 11:03:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:03:04] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => United States [10] => 1 ) [2024-05-27 11:03:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:03:04] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 11:03:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-27 11:03:04] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => United States ) [2024-05-27 11:03:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:03:04] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 259 [2] => 256 [3] => 248 [4] => 244 [5] => 233 [6] => 231 [7] => 227 [8] => 225 [9] => 223 [10] => 208 [11] => 203 [12] => 200 [13] => 199 [14] => 198 [15] => 187 [16] => 186 [17] => 179 [18] => 173 [19] => 172 ) [2024-05-27 11:03:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-27 11:03:10] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 88 [12] => 69 [13] => GLOBAL [14] => GLOBAL_FOR_PARENT [15] => GLOBAL_FOR_PARENT_AND_CHILD [16] => ZIPCODE_PARENT [17] => ZIPCODE_PARENT_AND_CHILD [18] => SELECTED_PARENT [19] => COUNTRY_PARENT [20] => COUNTRY_PARENT_AND_CHILD [21] => ZIPCODE_PARENT_AND_CHILD [22] => ZIPCODE [23] => 00601 [24] => COUNTRY_PARENT_AND_CHILD [25] => COUNTRY [26] => United States [27] => GLOBAL [28] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:03:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-27 11:03:10] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 88 [12] => 69 [13] => GLOBAL [14] => GLOBAL_FOR_PARENT [15] => GLOBAL_FOR_PARENT_AND_CHILD [16] => ZIPCODE_PARENT [17] => ZIPCODE_PARENT_AND_CHILD [18] => SELECTED_PARENT [19] => COUNTRY_PARENT [20] => COUNTRY_PARENT_AND_CHILD [21] => ZIPCODE_PARENT_AND_CHILD [22] => ZIPCODE [23] => 00601 [24] => COUNTRY_PARENT_AND_CHILD [25] => COUNTRY [26] => United States [27] => GLOBAL [28] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:03:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 11:03:32] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 87 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 169 [12] => GLOBAL [13] => GLOBAL_FOR_PARENT [14] => GLOBAL_FOR_PARENT_AND_CHILD [15] => ZIPCODE_PARENT [16] => ZIPCODE_PARENT_AND_CHILD [17] => SELECTED_PARENT [18] => COUNTRY_PARENT [19] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 11:03:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 11:03:32] local.DEBUG: Values for Sql:Array ( [0] => 167 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-27 11:03:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 11:03:33] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-27 11:03:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:03:34] local.DEBUG: Values for Sql:Array ( [0] => 167 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-05-27 11:03:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:03:34] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 203 [4] => 173 [5] => 172 [6] => 171 [7] => 128 [8] => 126 [9] => 125 [10] => 124 [11] => 123 ) [2024-05-27 11:03:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:03:34] local.DEBUG: Values for Sql:Array ( [0] => 167 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-05-27 11:03:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:03:34] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 11:03:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:03:34] local.DEBUG: Values for Sql:Array ( [0] => 167 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-05-27 11:03:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:03:34] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 203 [4] => 173 [5] => 172 [6] => 171 [7] => 128 [8] => 126 [9] => 125 [10] => 124 [11] => 123 ) [2024-05-27 11:03:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:03:41] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 87 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 169 [12] => GLOBAL [13] => GLOBAL_FOR_PARENT [14] => GLOBAL_FOR_PARENT_AND_CHILD [15] => ZIPCODE_PARENT [16] => ZIPCODE_PARENT_AND_CHILD [17] => SELECTED_PARENT [18] => COUNTRY_PARENT [19] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 11:03:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:03:41] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 87 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 169 [12] => GLOBAL [13] => GLOBAL_FOR_PARENT [14] => GLOBAL_FOR_PARENT_AND_CHILD [15] => ZIPCODE_PARENT [16] => ZIPCODE_PARENT_AND_CHILD [17] => SELECTED_PARENT [18] => COUNTRY_PARENT [19] => COUNTRY_PARENT_AND_CHILD [20] => 1 ) [2024-05-27 11:03:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:03:41] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 87 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 169 [12] => GLOBAL [13] => GLOBAL_FOR_PARENT [14] => GLOBAL_FOR_PARENT_AND_CHILD [15] => ZIPCODE_PARENT [16] => ZIPCODE_PARENT_AND_CHILD [17] => SELECTED_PARENT [18] => COUNTRY_PARENT [19] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 11:04:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 11:04:25] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 88 [12] => 69 [13] => GLOBAL [14] => GLOBAL_FOR_PARENT [15] => GLOBAL_FOR_PARENT_AND_CHILD [16] => ZIPCODE_PARENT [17] => ZIPCODE_PARENT_AND_CHILD [18] => SELECTED_PARENT [19] => COUNTRY_PARENT [20] => COUNTRY_PARENT_AND_CHILD [21] => ZIPCODE_PARENT_AND_CHILD [22] => ZIPCODE [23] => 00601 [24] => COUNTRY_PARENT_AND_CHILD [25] => COUNTRY [26] => United States [27] => GLOBAL [28] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:04:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-27 11:04:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => United States ) [2024-05-27 11:04:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:04:25] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-27 11:04:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:04:27] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => United States [10] => 1 ) [2024-05-27 11:04:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:04:27] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 11:04:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-27 11:04:27] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => United States ) [2024-05-27 11:04:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:04:27] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 259 [2] => 256 [3] => 248 [4] => 244 [5] => 233 [6] => 231 [7] => 227 [8] => 225 [9] => 223 [10] => 208 [11] => 203 [12] => 200 [13] => 199 [14] => 198 [15] => 187 [16] => 186 [17] => 179 [18] => 173 [19] => 172 ) [2024-05-27 11:04:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-27 11:04:30] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 88 [12] => 69 [13] => GLOBAL [14] => GLOBAL_FOR_PARENT [15] => GLOBAL_FOR_PARENT_AND_CHILD [16] => ZIPCODE_PARENT [17] => ZIPCODE_PARENT_AND_CHILD [18] => SELECTED_PARENT [19] => COUNTRY_PARENT [20] => COUNTRY_PARENT_AND_CHILD [21] => ZIPCODE_PARENT_AND_CHILD [22] => ZIPCODE [23] => 00601 [24] => COUNTRY_PARENT_AND_CHILD [25] => COUNTRY [26] => United States [27] => GLOBAL [28] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:04:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-27 11:04:30] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 88 [3] => ZIPCODE_PARENT [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 00601 [7] => COUNTRY_PARENT [8] => COUNTRY_PARENT_AND_CHILD [9] => COUNTRY [10] => United States [11] => 88 [12] => 69 [13] => GLOBAL [14] => GLOBAL_FOR_PARENT [15] => GLOBAL_FOR_PARENT_AND_CHILD [16] => ZIPCODE_PARENT [17] => ZIPCODE_PARENT_AND_CHILD [18] => SELECTED_PARENT [19] => COUNTRY_PARENT [20] => COUNTRY_PARENT_AND_CHILD [21] => ZIPCODE_PARENT_AND_CHILD [22] => ZIPCODE [23] => 00601 [24] => COUNTRY_PARENT_AND_CHILD [25] => COUNTRY [26] => United States [27] => GLOBAL [28] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:04:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 11:04:59] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 307 [3] => 250 [4] => GLOBAL [5] => GLOBAL_FOR_PARENT [6] => GLOBAL_FOR_PARENT_AND_CHILD [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => SELECTED_PARENT [10] => COUNTRY_PARENT [11] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 11:04:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 11:04:59] local.DEBUG: Values for Sql:Array ( [0] => 248 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 307 ) [2024-05-27 11:04:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 11:04:59] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 11:05:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:05:01] local.DEBUG: Values for Sql:Array ( [0] => 248 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 307 [8] => -1 ) [2024-05-27 11:05:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:05:02] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 11:05:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:05:02] local.DEBUG: Values for Sql:Array ( [0] => 248 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 307 [8] => 1 [9] => 307 [10] => -1 ) [2024-05-27 11:05:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:05:02] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 11:05:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:05:02] local.DEBUG: Values for Sql:Array ( [0] => 248 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 307 [8] => 307 [9] => -1 ) [2024-05-27 11:05:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:05:03] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 11:05:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:05:07] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 307 [3] => 250 [4] => GLOBAL [5] => GLOBAL_FOR_PARENT [6] => GLOBAL_FOR_PARENT_AND_CHILD [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => SELECTED_PARENT [10] => COUNTRY_PARENT [11] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 11:05:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:05:07] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 307 [3] => 250 [4] => GLOBAL [5] => GLOBAL_FOR_PARENT [6] => GLOBAL_FOR_PARENT_AND_CHILD [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => SELECTED_PARENT [10] => COUNTRY_PARENT [11] => COUNTRY_PARENT_AND_CHILD [12] => 1 ) [2024-05-27 11:05:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:05:07] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 307 [3] => 250 [4] => GLOBAL [5] => GLOBAL_FOR_PARENT [6] => GLOBAL_FOR_PARENT_AND_CHILD [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => SELECTED_PARENT [10] => COUNTRY_PARENT [11] => COUNTRY_PARENT_AND_CHILD ) [2024-05-27 11:05:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:05:21] local.DEBUG: Values for Sql:Array ( [0] => 248 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 307 [8] => -1 ) [2024-05-27 11:05:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:05:21] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 11:05:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:05:21] local.DEBUG: Values for Sql:Array ( [0] => 248 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 307 [8] => 1 [9] => 307 [10] => -1 ) [2024-05-27 11:05:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:05:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 11:05:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:05:21] local.DEBUG: Values for Sql:Array ( [0] => 248 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 307 [8] => 307 [9] => -1 ) [2024-05-27 11:05:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:05:21] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 11:06:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 11:06:19] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 89 [3] => 89 [4] => 69 [5] => GLOBAL [6] => GLOBAL_FOR_PARENT [7] => GLOBAL_FOR_PARENT_AND_CHILD [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => SELECTED_PARENT [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => ZIPCODE_PARENT_AND_CHILD [14] => ZIPCODE [15] => GLOBAL [16] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:06:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-27 11:06:19] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:06:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:06:19] local.DEBUG: Values for Sql:Array ( [0] => 259 ) [2024-05-27 11:06:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:06:22] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-27 11:06:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:06:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 11:06:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-27 11:06:22] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:06:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:06:22] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => 256 [2] => 248 [3] => 244 [4] => 233 [5] => 231 [6] => 227 [7] => 225 [8] => 223 [9] => 208 [10] => 203 [11] => 200 [12] => 199 [13] => 198 [14] => 187 [15] => 186 [16] => 179 [17] => 173 [18] => 172 [19] => 171 ) [2024-05-27 11:06:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-27 11:06:27] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 89 [3] => 89 [4] => 69 [5] => GLOBAL [6] => GLOBAL_FOR_PARENT [7] => GLOBAL_FOR_PARENT_AND_CHILD [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => SELECTED_PARENT [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => ZIPCODE_PARENT_AND_CHILD [14] => ZIPCODE [15] => GLOBAL [16] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:06:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-27 11:06:27] local.DEBUG: Values for Sql:Array ( [0] => SELECTED_PARENT [1] => USER [2] => 89 [3] => 89 [4] => 69 [5] => GLOBAL [6] => GLOBAL_FOR_PARENT [7] => GLOBAL_FOR_PARENT_AND_CHILD [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => SELECTED_PARENT [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => ZIPCODE_PARENT_AND_CHILD [14] => ZIPCODE [15] => GLOBAL [16] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-27 11:32:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 11:32:45] local.DEBUG: Values for Sql:Array ( [0] => 167 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-27 11:34:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:34:20] local.DEBUG: Values for Sql:Array ( ) [2024-05-27 11:34:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:34:20] local.DEBUG: Values for Sql:Array ( [0] => 1 ) [2024-05-27 11:34:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:34:20] local.DEBUG: Values for Sql:Array ( ) [2024-05-27 11:37:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 11:37:06] local.DEBUG: Values for Sql:Array ( [0] => 169 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 11:37:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 11:37:06] local.DEBUG: Values for Sql:Array ( [0] => 167 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-27 11:37:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 11:37:07] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-27 11:37:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:37:09] local.DEBUG: Values for Sql:Array ( ) [2024-05-27 11:37:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:37:09] local.DEBUG: Values for Sql:Array ( [0] => 1 ) [2024-05-27 11:37:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:37:09] local.DEBUG: Values for Sql:Array ( ) [2024-05-27 11:38:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:38:39] local.DEBUG: Values for Sql:Array ( [0] => 167 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-05-27 11:38:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:38:39] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 203 [4] => 173 [5] => 172 [6] => 171 [7] => 128 [8] => 126 [9] => 125 [10] => 124 [11] => 123 ) [2024-05-27 11:38:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:38:39] local.DEBUG: Values for Sql:Array ( [0] => 167 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-05-27 11:38:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:38:40] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 11:38:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:38:40] local.DEBUG: Values for Sql:Array ( [0] => 167 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-05-27 11:38:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:38:40] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 203 [4] => 173 [5] => 172 [6] => 171 [7] => 128 [8] => 126 [9] => 125 [10] => 124 [11] => 123 ) [2024-05-27 11:38:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:38:42] local.DEBUG: Values for Sql:Array ( [0] => 169 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 11:38:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:38:42] local.DEBUG: Values for Sql:Array ( [0] => 169 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States [15] => 1 ) [2024-05-27 11:38:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:38:42] local.DEBUG: Values for Sql:Array ( [0] => 169 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 11:39:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 11:39:10] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 11:39:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 11:39:10] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-27 11:39:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 11:39:10] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-27 11:39:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:39:12] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 11:39:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:39:12] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States [15] => 1 ) [2024-05-27 11:39:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:39:12] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 11:46:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:46:39] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-05-27 11:46:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:46:39] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 203 [4] => 173 [5] => 172 [6] => 171 [7] => 128 [8] => 126 [9] => 125 [10] => 124 [11] => 123 ) [2024-05-27 11:46:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:46:39] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-05-27 11:46:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:46:40] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 11:46:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:46:40] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-05-27 11:46:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:46:40] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 259 [2] => 256 [3] => 248 [4] => 244 [5] => 233 [6] => 231 [7] => 227 [8] => 225 [9] => 223 [10] => 208 [11] => 203 ) [2024-05-27 11:47:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:47:25] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 11:47:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:47:25] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States [15] => 1 ) [2024-05-27 11:47:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:47:25] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 11:47:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:47:28] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-05-27 11:47:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:47:28] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 203 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-05-27 11:47:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:47:28] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-05-27 11:47:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:47:28] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 11:47:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:47:28] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-05-27 11:47:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:47:28] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => 256 [2] => 248 [3] => 244 [4] => 233 [5] => 231 [6] => 227 [7] => 225 [8] => 223 [9] => 208 [10] => 203 [11] => 200 ) [2024-05-27 11:48:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:48:13] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 11:48:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:48:13] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States [15] => 1 ) [2024-05-27 11:48:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 11:48:13] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 11:48:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:48:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-05-27 11:48:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:48:15] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 203 [4] => 173 [5] => 172 [6] => 171 [7] => 128 [8] => 126 [9] => 125 [10] => 124 [11] => 123 ) [2024-05-27 11:48:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:48:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-05-27 11:48:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:48:15] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 11:48:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 11:48:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-05-27 11:48:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 11:48:16] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 259 [2] => 256 [3] => 248 [4] => 244 [5] => 233 [6] => 231 [7] => 227 [8] => 225 [9] => 223 [10] => 208 [11] => 203 ) [2024-05-27 12:26:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 12:26:19] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 12:26:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 12:26:19] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-27 12:26:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 12:26:19] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-27 12:30:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 12:30:08] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 12:30:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 12:30:08] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States [15] => 1 ) [2024-05-27 12:30:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 12:30:08] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-27 12:30:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 12:30:10] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-05-27 12:30:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 12:30:11] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 203 [4] => 173 [5] => 172 [6] => 171 [7] => 128 [8] => 126 [9] => 125 [10] => 124 [11] => 123 ) [2024-05-27 12:30:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 12:30:11] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-05-27 12:30:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 12:30:11] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 12:30:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 12:30:11] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-05-27 12:30:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 12:30:11] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 259 [2] => 256 [3] => 248 [4] => 244 [5] => 233 [6] => 231 [7] => 227 [8] => 225 [9] => 223 [10] => 208 [11] => 203 ) [2024-05-27 12:30:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 12:30:12] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-05-27 12:30:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 12:30:12] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 256 [2] => 208 [3] => 203 [4] => 173 [5] => 172 [6] => 171 [7] => 128 [8] => 126 [9] => 125 [10] => 124 [11] => 123 ) [2024-05-27 12:30:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 12:30:12] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-05-27 12:30:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 12:30:12] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 12:30:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 12:30:12] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-05-27 12:30:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 12:30:13] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => 259 [2] => 256 [3] => 248 [4] => 244 [5] => 233 [6] => 231 [7] => 227 [8] => 225 [9] => 223 [10] => 208 [11] => 203 ) [2024-05-27 12:46:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 12:46:03] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Uganda ) [2024-05-27 12:46:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 12:46:03] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda ) [2024-05-27 12:46:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 12:46:03] local.DEBUG: Values for Sql:Array ( [0] => 259 ) [2024-05-27 12:46:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 12:46:05] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => -1 ) [2024-05-27 12:46:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 12:46:05] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 203 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-05-27 12:46:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 12:46:05] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 1 [17] => 87 [18] => -1 ) [2024-05-27 12:46:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 12:46:05] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 12:46:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 12:46:05] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 [17] => -1 ) [2024-05-27 12:46:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 12:46:06] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => 256 [2] => 248 [3] => 244 [4] => 233 [5] => 231 [6] => 227 [7] => 225 [8] => 223 [9] => 208 [10] => 203 [11] => 200 ) [2024-05-27 12:46:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 12:46:09] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Uganda ) [2024-05-27 12:46:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 12:46:09] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Uganda [15] => 1 ) [2024-05-27 12:46:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 12:46:09] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Uganda ) [2024-05-27 17:25:18] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"cruzmel26@yahoo.com","name":"Melissa Cruz"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Melissa Cruz,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">74210<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-27 17:25:18] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.169b7b90-1c4e-11ef-8802-525400d6cd4f.18fbb15c9c9","object":"email"} [2024-05-27 17:26:10] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 378 [2024-05-27 17:26:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 17:26:28] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 378 ) [2024-05-27 17:26:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 17:26:28] local.DEBUG: Values for Sql:Array ( [0] => 313 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 378 ) [2024-05-27 17:26:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 17:26:28] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 17:26:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 17:26:56] local.DEBUG: Values for Sql:Array ( [0] => 313 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 378 [8] => -1 ) [2024-05-27 17:26:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 17:26:57] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 17:26:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 17:26:57] local.DEBUG: Values for Sql:Array ( [0] => 313 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 378 [8] => 1 [9] => 378 [10] => -1 ) [2024-05-27 17:26:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 17:26:57] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 17:26:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 17:26:57] local.DEBUG: Values for Sql:Array ( [0] => 313 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 378 [8] => 378 [9] => -1 ) [2024-05-27 17:26:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 17:26:57] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 17:27:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-27 17:27:23] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 378 ) [2024-05-27 17:27:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 17:27:26] local.DEBUG: Values for Sql:Array ( [0] => 313 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 378 [8] => -1 ) [2024-05-27 17:27:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 17:27:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 17:27:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 17:27:26] local.DEBUG: Values for Sql:Array ( [0] => 313 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 378 [8] => 1 [9] => 378 [10] => -1 ) [2024-05-27 17:27:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 17:27:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 17:27:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 17:27:26] local.DEBUG: Values for Sql:Array ( [0] => 313 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 378 [8] => 378 [9] => -1 ) [2024-05-27 17:27:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 17:27:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 17:27:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 17:27:29] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 378 ) [2024-05-27 17:27:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 17:27:29] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 378 [7] => 1 ) [2024-05-27 17:27:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 17:27:29] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 378 ) [2024-05-27 17:27:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 17:27:45] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 378 ) [2024-05-27 17:27:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 17:27:45] local.DEBUG: Values for Sql:Array ( [0] => 313 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 378 ) [2024-05-27 17:27:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 17:27:45] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 21:40:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 21:40:13] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-27 21:40:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 21:40:14] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-05-27 21:40:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 21:40:14] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 21:40:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 21:40:47] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-27 21:40:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 21:40:47] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 [7] => 1 ) [2024-05-27 21:40:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 21:40:47] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-27 21:41:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 21:41:03] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => -1 ) [2024-05-27 21:41:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 21:41:03] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 21:41:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 21:41:03] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 [9] => 320 [10] => -1 ) [2024-05-27 21:41:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 21:41:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 21:41:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 21:41:03] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 320 [9] => -1 ) [2024-05-27 21:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 21:41:04] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 21:41:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 21:41:21] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-27 21:41:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 21:41:21] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-05-27 21:41:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 21:41:21] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 21:41:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 21:41:28] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => -1 ) [2024-05-27 21:41:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 21:41:28] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 21:41:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 21:41:28] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 [9] => 320 [10] => -1 ) [2024-05-27 21:41:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 21:41:28] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 21:41:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 21:41:28] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 320 [9] => -1 ) [2024-05-27 21:41:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 21:41:28] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 21:58:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 21:58:22] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 357 ) [2024-05-27 21:58:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 21:58:22] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 357 ) [2024-05-27 21:58:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 21:58:22] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 21:58:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 21:58:54] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 357 ) [2024-05-27 21:58:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 21:58:54] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 357 ) [2024-05-27 21:58:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 21:58:54] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 22:21:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 22:21:21] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 357 ) [2024-05-27 22:21:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 22:21:21] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 357 ) [2024-05-27 22:21:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 22:21:21] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 22:21:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 22:21:33] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 357 ) [2024-05-27 22:21:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 22:21:33] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 357 ) [2024-05-27 22:21:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 22:21:33] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 22:21:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 22:21:47] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 357 ) [2024-05-27 22:21:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 22:21:47] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 357 [7] => 1 ) [2024-05-27 22:21:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 22:21:47] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 357 ) [2024-05-27 22:22:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 22:22:22] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 357 ) [2024-05-27 22:22:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 22:22:24] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 357 ) [2024-05-27 22:30:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 22:30:25] local.DEBUG: Values for Sql:Array ( [0] => 302 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 364 ) [2024-05-27 22:30:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 22:30:25] local.DEBUG: Values for Sql:Array ( [0] => 300 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 364 ) [2024-05-27 22:30:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 22:30:25] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 22:45:20] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ron@rselectricalconsulting.com","name":"ronald otho smith"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello ronald otho smith,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">55828<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-27 22:45:20] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cbecdb20-1c7a-11ef-9106-525400ae9113.18fbc3ac9d2","object":"email"} [2024-05-27 22:45:32] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Mgtucker88@yahoo.com","name":"Matthew Tucker"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Matthew Tucker,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">67922<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-27 22:45:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d356e590-1c7a-11ef-8802-525400d6cd4f.18fbc3afa69","object":"email"} [2024-05-27 22:45:39] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 379 [2024-05-27 22:45:43] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 380 [2024-05-27 22:45:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 22:45:55] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-27 22:45:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 22:45:55] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-27 22:45:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 22:45:55] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 22:46:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 22:46:04] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-27 22:46:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 22:46:04] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-27 22:46:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 22:46:04] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 22:46:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 22:46:19] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-27 22:46:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 22:46:19] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 [7] => 1 ) [2024-05-27 22:46:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 22:46:19] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-27 22:46:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 22:46:38] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-27 22:46:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 22:46:38] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-27 22:46:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 22:46:38] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 22:46:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 22:46:39] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 [8] => -1 ) [2024-05-27 22:46:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 22:46:39] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 22:46:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 22:46:39] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 [8] => 1 [9] => 380 [10] => -1 ) [2024-05-27 22:46:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 22:46:40] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 22:46:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 22:46:40] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 [8] => 380 [9] => -1 ) [2024-05-27 22:46:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 22:46:40] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 22:47:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 22:47:03] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-27 22:47:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 22:47:03] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-27 22:47:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 22:47:03] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 22:47:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 22:47:38] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 [8] => -1 ) [2024-05-27 22:47:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 22:47:38] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 22:47:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 22:47:38] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 [8] => 1 [9] => 380 [10] => -1 ) [2024-05-27 22:47:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 22:47:38] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-27 22:47:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-27 22:47:38] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 [8] => 380 [9] => -1 ) [2024-05-27 22:47:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-27 22:47:38] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-27 22:47:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 22:47:40] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-27 22:47:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 22:47:40] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 [7] => 1 ) [2024-05-27 22:47:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 22:47:40] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-27 22:47:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 22:47:59] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-27 22:47:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 22:47:59] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-27 22:47:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 22:47:59] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 23:26:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 23:26:13] local.DEBUG: Values for Sql:Array ( [0] => 299 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 361 ) [2024-05-27 23:26:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 23:26:13] local.DEBUG: Values for Sql:Array ( [0] => 299 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 361 ) [2024-05-27 23:26:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 23:26:13] local.DEBUG: Values for Sql:Array ( [0] => 297 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 361 ) [2024-05-27 23:26:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 23:26:13] local.DEBUG: Values for Sql:Array ( [0] => 297 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 361 ) [2024-05-27 23:26:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 23:26:13] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 23:26:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 23:26:13] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-27 23:27:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-30' and `tasks`.`due_by` > '2024-05-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 23:27:42] local.DEBUG: Values for Sql:Array ( [0] => 299 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 361 ) [2024-05-27 23:27:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 23:27:42] local.DEBUG: Values for Sql:Array ( [0] => 299 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 361 [7] => 1 ) [2024-05-27 23:27:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-27 23:27:42] local.DEBUG: Values for Sql:Array ( [0] => 299 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 361 ) [2024-05-27 23:27:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-27 23:27:58] local.DEBUG: Values for Sql:Array ( [0] => 299 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 361 ) [2024-05-27 23:27:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-27 23:27:58] local.DEBUG: Values for Sql:Array ( [0] => 297 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 361 ) [2024-05-27 23:27:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-27 23:27:58] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 00:27:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 00:27:16] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-05-28 00:27:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 00:27:16] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-05-28 00:27:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 00:27:16] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-05-28 00:27:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 00:27:16] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-05-28 00:27:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 00:27:16] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 00:27:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 00:27:16] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 00:31:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 00:31:19] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 377 ) [2024-05-28 00:31:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 00:31:19] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 377 ) [2024-05-28 00:31:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 00:31:19] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 00:31:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 00:31:36] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 377 ) [2024-05-28 00:31:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 00:31:36] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 377 ) [2024-05-28 00:31:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 00:31:36] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 00:41:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 00:41:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => -1 ) [2024-05-28 00:41:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 00:41:15] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 203 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-05-28 00:41:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 00:41:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 1 [17] => 87 [18] => -1 ) [2024-05-28 00:41:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 00:41:15] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 00:41:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 00:41:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 [17] => -1 ) [2024-05-28 00:41:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 00:41:15] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => 256 [2] => 248 [3] => 244 [4] => 233 [5] => 231 [6] => 227 [7] => 225 [8] => 223 [9] => 208 [10] => 203 [11] => 200 ) [2024-05-28 00:41:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 00:41:15] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Uganda ) [2024-05-28 00:41:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 00:41:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda ) [2024-05-28 00:41:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 00:41:15] local.DEBUG: Values for Sql:Array ( [0] => 259 ) [2024-05-28 00:41:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 00:41:28] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Uganda ) [2024-05-28 00:41:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 00:41:28] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda ) [2024-05-28 00:41:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 00:41:28] local.DEBUG: Values for Sql:Array ( [0] => 259 ) [2024-05-28 00:41:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 00:41:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => -1 ) [2024-05-28 00:41:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 00:41:37] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 203 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-05-28 00:41:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 00:41:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 1 [17] => 87 [18] => -1 ) [2024-05-28 00:41:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 00:41:37] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 00:41:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 00:41:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 [17] => -1 ) [2024-05-28 00:41:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 00:41:37] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => 256 [2] => 248 [3] => 244 [4] => 233 [5] => 231 [6] => 227 [7] => 225 [8] => 223 [9] => 208 [10] => 203 [11] => 200 ) [2024-05-28 00:44:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 00:44:19] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-28 00:44:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 00:44:19] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-28 00:44:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 00:44:19] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 01:22:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 01:22:22] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-28 01:22:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 01:22:22] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-28 01:22:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 01:22:22] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 01:32:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 01:32:00] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-28 01:32:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 01:32:00] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-05-28 01:32:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 01:32:00] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 01:32:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 01:32:04] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-28 01:32:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 01:32:04] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-05-28 01:32:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 01:32:04] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 01:32:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 01:32:25] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-28 01:32:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 01:32:25] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-05-28 01:32:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 01:32:25] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 01:32:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 01:32:37] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-28 01:32:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 01:32:37] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 [7] => 1 ) [2024-05-28 01:32:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 01:32:37] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-28 01:32:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:32:46] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => -1 ) [2024-05-28 01:32:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:32:46] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:32:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:32:46] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 [9] => 320 [10] => -1 ) [2024-05-28 01:32:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:32:46] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 01:32:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:32:46] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 320 [9] => -1 ) [2024-05-28 01:32:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:32:46] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:32:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:32:48] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => -1 ) [2024-05-28 01:32:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:32:48] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:32:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:32:48] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 [9] => 320 [10] => -1 ) [2024-05-28 01:32:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:32:48] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 01:32:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:32:48] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 320 [9] => -1 ) [2024-05-28 01:32:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:32:48] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:32:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:32:57] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => -1 ) [2024-05-28 01:32:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:32:57] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:32:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:32:57] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 [9] => 320 [10] => -1 ) [2024-05-28 01:32:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:32:57] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 01:32:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:32:57] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 320 [9] => -1 ) [2024-05-28 01:32:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:32:57] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:33:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 01:33:05] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 10 [9] => 11 [10] => 12 [11] => 13 [12] => 14 [13] => 15 [14] => 16 [15] => 17 [16] => 18 [17] => 19 [18] => 20 [19] => 21 [20] => 22 [21] => 23 [22] => 24 [23] => 25 [24] => 26 [25] => 27 [26] => 28 [27] => 29 [28] => 30 [29] => 31 [30] => 34 [31] => 35 [32] => 36 [33] => 37 [34] => 38 [35] => 40 [36] => 44 [37] => 45 [38] => 46 [39] => 47 [40] => 48 [41] => 49 [42] => 50 [43] => 51 [44] => 52 [45] => 53 [46] => 54 [47] => 55 [48] => 56 [49] => 57 [50] => 58 [51] => 59 [52] => 77 [53] => 86 [54] => 87 [55] => 88 [56] => 89 [57] => 91 [58] => 92 [59] => 93 [60] => 94 [61] => 95 [62] => 96 [63] => 97 [64] => 98 [65] => 99 [66] => 104 [67] => 105 [68] => 106 [69] => 107 [70] => 108 [71] => 109 [72] => 110 [73] => 111 [74] => 112 [75] => 114 [76] => 115 [77] => 116 [78] => 120 [79] => 123 [80] => 124 [81] => 125 [82] => 126 [83] => 127 [84] => 128 [85] => 129 [86] => 130 [87] => 131 [88] => 132 [89] => 133 [90] => 134 [91] => 135 [92] => 136 [93] => 137 [94] => 138 [95] => 139 [96] => 140 [97] => 141 [98] => 142 [99] => 143 [100] => 144 [101] => 148 [102] => 149 [103] => 154 [104] => 155 [105] => 156 [106] => 157 [107] => 158 [108] => 159 [109] => 160 [110] => 161 [111] => 162 [112] => 163 [113] => 164 [114] => 165 [115] => 166 [116] => 167 [117] => 168 [118] => 169 [119] => 170 [120] => 171 [121] => 172 [122] => 173 [123] => 174 [124] => 175 [125] => 176 [126] => 177 [127] => 178 [128] => 179 [129] => 180 [130] => 181 [131] => 182 [132] => 183 [133] => 184 [134] => 185 [135] => 186 [136] => 187 [137] => 189 [138] => 190 [139] => 191 [140] => 192 [141] => 193 [142] => 194 [143] => 195 [144] => 196 [145] => 197 [146] => 199 [147] => 200 [148] => 201 [149] => 202 [150] => 203 [151] => 204 [152] => 206 [153] => 207 [154] => 208 [155] => 209 [156] => 210 [157] => 211 [158] => 213 [159] => 214 [160] => 215 [161] => 216 [162] => 217 [163] => 218 [164] => 219 [165] => 220 [166] => 221 [167] => 222 [168] => 223 [169] => 224 [170] => 225 [171] => 226 [172] => 227 [173] => 228 [174] => 229 [175] => 230 [176] => 231 [177] => 232 [178] => 233 [179] => 234 [180] => 235 [181] => 236 [182] => 237 [183] => 238 [184] => 239 [185] => 240 [186] => 241 [187] => 242 [188] => 243 [189] => 244 [190] => 245 [191] => 246 [192] => 247 [193] => 248 [194] => 249 [195] => 250 [196] => 251 [197] => 252 [198] => 253 [199] => 254 [200] => 255 [201] => 256 [202] => 257 [203] => 258 [204] => 259 [205] => 260 [206] => 261 [207] => 262 [208] => 263 [209] => 264 [210] => 265 [211] => 266 [212] => 267 [213] => 268 [214] => 269 [215] => 270 [216] => 271 [217] => 272 [218] => 273 [219] => 274 [220] => 275 [221] => 276 [222] => 277 [223] => 278 [224] => 279 [225] => 280 [226] => 281 [227] => 282 [228] => 283 [229] => 284 [230] => 285 [231] => 286 [232] => 287 [233] => 288 [234] => 289 [235] => 290 [236] => 291 [237] => 292 [238] => 293 [239] => 294 [240] => 295 [241] => 296 [242] => 297 [243] => 298 [244] => 299 [245] => 300 [246] => 301 [247] => 302 [248] => 303 [249] => 304 [250] => 305 [251] => 306 [252] => 307 [253] => 308 [254] => 309 [255] => 310 [256] => 311 [257] => 312 [258] => 313 [259] => 314 [260] => 315 [261] => 316 [262] => 317 [263] => 318 [264] => 319 [265] => 320 [266] => 321 [267] => 322 [268] => 323 [269] => 324 [270] => 325 [271] => 326 [272] => 327 [273] => 328 [274] => 329 [275] => 330 [276] => 331 [277] => 332 [278] => 333 [279] => 334 [280] => 335 [281] => 336 [282] => 337 [283] => 338 [284] => 339 [285] => 340 [286] => 341 [287] => 342 [288] => 343 [289] => 344 [290] => 345 [291] => 346 [292] => 347 [293] => 348 [294] => 349 [295] => 350 [296] => 351 [297] => 352 [298] => 353 [299] => 354 [300] => 355 [301] => 356 [302] => 357 [303] => 358 [304] => 359 [305] => 360 [306] => 361 [307] => 362 [308] => 363 [309] => 364 [310] => 365 [311] => 366 [312] => 367 [313] => 368 [314] => 369 [315] => 370 [316] => 371 [317] => 372 [318] => 373 [319] => 374 [320] => 375 [321] => 376 [322] => 377 [323] => 378 [324] => 379 [325] => 380 ) [2024-05-28 01:33:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:05] local.DEBUG: Values for Sql:Array ( [0] => 1 ) [2024-05-28 01:33:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 01:33:06] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 10 [9] => 11 [10] => 12 [11] => 13 [12] => 14 [13] => 15 [14] => 16 [15] => 17 [16] => 18 [17] => 19 [18] => 20 [19] => 21 [20] => 22 [21] => 23 [22] => 24 [23] => 25 [24] => 26 [25] => 27 [26] => 28 [27] => 29 [28] => 30 [29] => 31 [30] => 34 [31] => 35 [32] => 36 [33] => 37 [34] => 38 [35] => 40 [36] => 44 [37] => 45 [38] => 46 [39] => 47 [40] => 48 [41] => 49 [42] => 50 [43] => 51 [44] => 52 [45] => 53 [46] => 54 [47] => 55 [48] => 56 [49] => 57 [50] => 58 [51] => 59 [52] => 77 [53] => 86 [54] => 87 [55] => 88 [56] => 89 [57] => 91 [58] => 92 [59] => 93 [60] => 94 [61] => 95 [62] => 96 [63] => 97 [64] => 98 [65] => 99 [66] => 104 [67] => 105 [68] => 106 [69] => 107 [70] => 108 [71] => 109 [72] => 110 [73] => 111 [74] => 112 [75] => 114 [76] => 115 [77] => 116 [78] => 120 [79] => 123 [80] => 124 [81] => 125 [82] => 126 [83] => 127 [84] => 128 [85] => 129 [86] => 130 [87] => 131 [88] => 132 [89] => 133 [90] => 134 [91] => 135 [92] => 136 [93] => 137 [94] => 138 [95] => 139 [96] => 140 [97] => 141 [98] => 142 [99] => 143 [100] => 144 [101] => 148 [102] => 149 [103] => 154 [104] => 155 [105] => 156 [106] => 157 [107] => 158 [108] => 159 [109] => 160 [110] => 161 [111] => 162 [112] => 163 [113] => 164 [114] => 165 [115] => 166 [116] => 167 [117] => 168 [118] => 169 [119] => 170 [120] => 171 [121] => 172 [122] => 173 [123] => 174 [124] => 175 [125] => 176 [126] => 177 [127] => 178 [128] => 179 [129] => 180 [130] => 181 [131] => 182 [132] => 183 [133] => 184 [134] => 185 [135] => 186 [136] => 187 [137] => 189 [138] => 190 [139] => 191 [140] => 192 [141] => 193 [142] => 194 [143] => 195 [144] => 196 [145] => 197 [146] => 199 [147] => 200 [148] => 201 [149] => 202 [150] => 203 [151] => 204 [152] => 206 [153] => 207 [154] => 208 [155] => 209 [156] => 210 [157] => 211 [158] => 213 [159] => 214 [160] => 215 [161] => 216 [162] => 217 [163] => 218 [164] => 219 [165] => 220 [166] => 221 [167] => 222 [168] => 223 [169] => 224 [170] => 225 [171] => 226 [172] => 227 [173] => 228 [174] => 229 [175] => 230 [176] => 231 [177] => 232 [178] => 233 [179] => 234 [180] => 235 [181] => 236 [182] => 237 [183] => 238 [184] => 239 [185] => 240 [186] => 241 [187] => 242 [188] => 243 [189] => 244 [190] => 245 [191] => 246 [192] => 247 [193] => 248 [194] => 249 [195] => 250 [196] => 251 [197] => 252 [198] => 253 [199] => 254 [200] => 255 [201] => 256 [202] => 257 [203] => 258 [204] => 259 [205] => 260 [206] => 261 [207] => 262 [208] => 263 [209] => 264 [210] => 265 [211] => 266 [212] => 267 [213] => 268 [214] => 269 [215] => 270 [216] => 271 [217] => 272 [218] => 273 [219] => 274 [220] => 275 [221] => 276 [222] => 277 [223] => 278 [224] => 279 [225] => 280 [226] => 281 [227] => 282 [228] => 283 [229] => 284 [230] => 285 [231] => 286 [232] => 287 [233] => 288 [234] => 289 [235] => 290 [236] => 291 [237] => 292 [238] => 293 [239] => 294 [240] => 295 [241] => 296 [242] => 297 [243] => 298 [244] => 299 [245] => 300 [246] => 301 [247] => 302 [248] => 303 [249] => 304 [250] => 305 [251] => 306 [252] => 307 [253] => 308 [254] => 309 [255] => 310 [256] => 311 [257] => 312 [258] => 313 [259] => 314 [260] => 315 [261] => 316 [262] => 317 [263] => 318 [264] => 319 [265] => 320 [266] => 321 [267] => 322 [268] => 323 [269] => 324 [270] => 325 [271] => 326 [272] => 327 [273] => 328 [274] => 329 [275] => 330 [276] => 331 [277] => 332 [278] => 333 [279] => 334 [280] => 335 [281] => 336 [282] => 337 [283] => 338 [284] => 339 [285] => 340 [286] => 341 [287] => 342 [288] => 343 [289] => 344 [290] => 345 [291] => 346 [292] => 347 [293] => 348 [294] => 349 [295] => 350 [296] => 351 [297] => 352 [298] => 353 [299] => 354 [300] => 355 [301] => 356 [302] => 357 [303] => 358 [304] => 359 [305] => 360 [306] => 361 [307] => 362 [308] => 363 [309] => 364 [310] => 365 [311] => 366 [312] => 367 [313] => 368 [314] => 369 [315] => 370 [316] => 371 [317] => 372 [318] => 373 [319] => 374 [320] => 375 [321] => 376 [322] => 377 [323] => 378 [324] => 379 [325] => 380 ) [2024-05-28 01:33:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:33:09] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => -1 ) [2024-05-28 01:33:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:09] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:33:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:33:09] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 [9] => 320 [10] => -1 ) [2024-05-28 01:33:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:09] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 01:33:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:33:09] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 320 [9] => -1 ) [2024-05-28 01:33:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:09] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:33:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-28 01:33:13] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 121 ) [2024-05-28 01:33:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 01:33:13] local.DEBUG: Values for Sql:Array ( [0] => 121 ) [2024-05-28 01:33:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-28 01:33:21] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 121 ) [2024-05-28 01:33:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 01:33:21] local.DEBUG: Values for Sql:Array ( [0] => 121 ) [2024-05-28 01:33:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-28 01:33:21] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-28 01:33:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:33:26] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => -1 ) [2024-05-28 01:33:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:33:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:33:26] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 [9] => 320 [10] => -1 ) [2024-05-28 01:33:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 01:33:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:33:26] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 320 [9] => -1 ) [2024-05-28 01:33:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:33:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:33:28] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 ) [2024-05-28 01:33:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:28] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 01:33:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 01:33:28] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-05-28 01:33:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:28] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 ) [2024-05-28 01:33:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 01:33:36] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 3 ) [2024-05-28 01:33:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:36] local.DEBUG: Values for Sql:Array ( [0] => 173 [1] => 115 ) [2024-05-28 01:33:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 01:33:36] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 3 ) [2024-05-28 01:33:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:33:37] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 ) [2024-05-28 01:33:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:37] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 01:33:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 01:33:37] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-05-28 01:33:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:37] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 ) [2024-05-28 01:33:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 01:33:38] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 4 ) [2024-05-28 01:33:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:38] local.DEBUG: Values for Sql:Array ( [0] => 107 [1] => 106 [2] => 105 [3] => 104 [4] => 102 [5] => 101 [6] => 99 [7] => 98 [8] => 97 [9] => 95 ) [2024-05-28 01:33:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 01:33:40] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 4 ) [2024-05-28 01:33:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:40] local.DEBUG: Values for Sql:Array ( [0] => 94 ) [2024-05-28 01:33:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 01:33:41] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 4 ) [2024-05-28 01:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:33:44] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 ) [2024-05-28 01:33:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 01:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 01:33:44] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-05-28 01:33:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:33:44] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 ) [2024-05-28 01:49:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 01:49:38] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 277 ) [2024-05-28 01:49:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 01:49:38] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 277 ) [2024-05-28 01:49:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 01:49:38] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 01:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 01:50:13] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 277 ) [2024-05-28 01:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 01:50:13] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 277 [7] => 1 ) [2024-05-28 01:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 01:50:13] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 277 ) [2024-05-28 01:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:50:23] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 277 [8] => -1 ) [2024-05-28 01:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:50:23] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:50:23] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 277 [8] => 1 [9] => 277 [10] => -1 ) [2024-05-28 01:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:50:23] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 01:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 01:50:23] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 277 [8] => 277 [9] => -1 ) [2024-05-28 01:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 01:50:23] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 01:50:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 01:50:29] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 277 ) [2024-05-28 01:50:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 01:50:29] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 277 ) [2024-05-28 01:50:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 01:50:29] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 02:54:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 02:54:38] local.DEBUG: Values for Sql:Array ( [0] => 238 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 295 ) [2024-05-28 02:54:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 02:54:38] local.DEBUG: Values for Sql:Array ( [0] => 236 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 295 ) [2024-05-28 02:54:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 02:54:38] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:00:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:00:03] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:00:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:00:03] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-28 03:00:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:00:03] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 [7] => 1 ) [2024-05-28 03:00:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:00:03] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:00:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:00:03] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:00:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:00:03] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 ) [2024-05-28 03:00:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:00:04] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:00:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:00:53] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:00:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:00:53] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 [7] => 1 ) [2024-05-28 03:00:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:00:54] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:01:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:01:06] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-28 03:01:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:01:35] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-28 03:01:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:01:40] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:01:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:01:40] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 [7] => 1 ) [2024-05-28 03:01:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:01:40] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:01:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:01:43] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-28 03:01:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:01:56] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-28 03:01:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:01:59] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:01:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:01:59] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 [7] => 1 ) [2024-05-28 03:01:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:01:59] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:02:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:02:01] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => -1 ) [2024-05-28 03:02:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:02:01] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:02:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:02:01] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => 1 [9] => 343 [10] => -1 ) [2024-05-28 03:02:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:02:01] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 03:02:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:02:01] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => 343 [9] => -1 ) [2024-05-28 03:02:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:02:01] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:02:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:02:06] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:02:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:02:06] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 ) [2024-05-28 03:02:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:02:06] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:02:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:02:07] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:02:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:02:07] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 [7] => 1 ) [2024-05-28 03:02:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:02:07] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:02:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:02:24] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 [7] => 1 ) [2024-05-28 03:02:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:02:32] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-28 03:02:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:02:39] local.DEBUG: Values for Sql:Array ( [0] => 288 ) [2024-05-28 03:02:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:02:46] local.DEBUG: Values for Sql:Array ( [0] => 288 ) [2024-05-28 03:02:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:02:54] local.DEBUG: Values for Sql:Array ( [0] => 279 ) [2024-05-28 03:02:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:02:59] local.DEBUG: Values for Sql:Array ( [0] => 278 ) [2024-05-28 03:03:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:03:20] local.DEBUG: Values for Sql:Array ( [0] => 278 ) [2024-05-28 03:03:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:03:29] local.DEBUG: Values for Sql:Array ( [0] => 278 ) [2024-05-28 03:03:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:03:33] local.DEBUG: Values for Sql:Array ( [0] => 249 ) [2024-05-28 03:03:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:03:39] local.DEBUG: Values for Sql:Array ( [0] => 249 ) [2024-05-28 03:03:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:03:44] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-05-28 03:03:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:03:51] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-05-28 03:04:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-28 03:04:02] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => 201 ) [2024-05-28 03:04:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:04:02] local.DEBUG: Values for Sql:Array ( [0] => 201 ) [2024-05-28 03:04:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:04:11] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-05-28 03:04:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-28 03:04:16] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => 201 ) [2024-05-28 03:04:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:04:16] local.DEBUG: Values for Sql:Array ( [0] => 201 ) [2024-05-28 03:04:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:04:24] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-05-28 03:04:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:04:29] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-05-28 03:04:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-28 03:04:39] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => 201 ) [2024-05-28 03:04:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:04:39] local.DEBUG: Values for Sql:Array ( [0] => 201 ) [2024-05-28 03:04:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:04:42] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-05-28 03:04:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-28 03:04:43] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => 201 ) [2024-05-28 03:04:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:04:43] local.DEBUG: Values for Sql:Array ( [0] => 201 ) [2024-05-28 03:04:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:04:46] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-05-28 03:05:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:05:02] local.DEBUG: Values for Sql:Array ( [0] => 195 ) [2024-05-28 03:05:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-28 03:05:11] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => 5 ) [2024-05-28 03:05:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:05:11] local.DEBUG: Values for Sql:Array ( [0] => 5 ) [2024-05-28 03:05:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:05:27] local.DEBUG: Values for Sql:Array ( [0] => 195 ) [2024-05-28 03:05:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-28 03:05:30] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => 5 ) [2024-05-28 03:05:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:05:30] local.DEBUG: Values for Sql:Array ( [0] => 5 ) [2024-05-28 03:05:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:05:31] local.DEBUG: Values for Sql:Array ( [0] => 195 ) [2024-05-28 03:05:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:05:43] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:05:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:05:43] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 [7] => 1 ) [2024-05-28 03:05:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:05:43] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:05:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:05:45] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:05:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:05:45] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 ) [2024-05-28 03:05:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:05:45] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:05:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:05:53] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:05:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:05:53] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 [7] => 1 ) [2024-05-28 03:05:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:05:53] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:06:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:06:08] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-05-28 03:06:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:06:20] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:06:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:06:20] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 [7] => 1 ) [2024-05-28 03:06:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:06:20] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:06:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:06:41] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:06:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:06:41] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 ) [2024-05-28 03:06:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:06:41] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:06:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:06:44] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => -1 ) [2024-05-28 03:06:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:06:44] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:06:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:06:45] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => 1 [9] => 343 [10] => -1 ) [2024-05-28 03:06:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:06:45] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 03:06:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:06:45] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 [8] => 343 [9] => -1 ) [2024-05-28 03:06:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:06:45] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:06:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:06:52] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:06:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:06:52] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 ) [2024-05-28 03:06:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:06:52] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:08:52] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:08:52] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 ) [2024-05-28 03:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:08:52] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:08:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:08:58] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:08:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:08:58] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 ) [2024-05-28 03:08:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:08:58] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:09:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:09:06] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 ) [2024-05-28 03:09:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:09:06] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 343 ) [2024-05-28 03:09:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:09:06] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:28:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:28:02] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-28 03:28:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:28:02] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 03:28:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:28:02] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:29:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:29:15] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-28 03:29:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:29:15] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 [7] => 1 ) [2024-05-28 03:29:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:29:15] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-28 03:29:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:29:26] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => -1 ) [2024-05-28 03:29:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:29:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:29:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:29:26] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 1 [9] => 286 [10] => -1 ) [2024-05-28 03:29:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:29:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 03:29:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:29:26] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 286 [9] => -1 ) [2024-05-28 03:29:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:29:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:29:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-05-28 03:29:50] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-28 03:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:29:59] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => -1 ) [2024-05-28 03:29:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:29:59] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:29:59] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 1 [9] => 286 [10] => -1 ) [2024-05-28 03:29:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:29:59] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 03:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:29:59] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 286 [9] => -1 ) [2024-05-28 03:29:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:29:59] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:30:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:30:00] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 1 ) [2024-05-28 03:30:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:30:00] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 03:30:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 03:30:00] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 03:30:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:30:00] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 ) [2024-05-28 03:30:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:30:10] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => -1 ) [2024-05-28 03:30:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:30:10] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:30:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:30:10] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 1 [9] => 286 [10] => -1 ) [2024-05-28 03:30:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:30:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 03:30:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:30:10] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 286 [9] => -1 ) [2024-05-28 03:30:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:30:10] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:30:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:30:13] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-28 03:30:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:30:13] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 03:30:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:30:13] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:33:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:33:38] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-28 03:33:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:33:38] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 03:33:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:33:38] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:33:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:33:45] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => -1 ) [2024-05-28 03:33:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:33:45] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:33:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:33:45] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 1 [9] => 286 [10] => -1 ) [2024-05-28 03:33:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:33:45] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 03:33:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:33:45] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 286 [9] => -1 ) [2024-05-28 03:33:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:33:45] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:34:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 03:34:01] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 03:34:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:34:01] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 ) [2024-05-28 03:34:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 03:34:02] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 03:34:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:34:03] local.DEBUG: Values for Sql:Array ( [0] => 122 [1] => 121 [2] => 120 [3] => 119 [4] => 118 [5] => 117 [6] => 116 [7] => 115 [8] => 109 [9] => 107 ) [2024-05-28 03:34:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 03:34:07] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 03:34:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:34:07] local.DEBUG: Values for Sql:Array ( [0] => 106 [1] => 105 [2] => 104 [3] => 102 [4] => 101 [5] => 99 [6] => 98 [7] => 97 [8] => 95 [9] => 94 ) [2024-05-28 03:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 03:34:10] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 03:34:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:34:10] local.DEBUG: Values for Sql:Array ( [0] => 91 [1] => 90 [2] => 89 [3] => 88 [4] => 87 [5] => 1 [6] => 2 ) [2024-05-28 03:34:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-28 03:34:13] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 03:34:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:34:22] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => -1 ) [2024-05-28 03:34:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:34:22] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:34:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:34:22] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 1 [9] => 286 [10] => -1 ) [2024-05-28 03:34:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:34:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 03:34:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:34:22] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 286 [9] => -1 ) [2024-05-28 03:34:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:34:22] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:34:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:34:25] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-28 03:34:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:34:25] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 03:34:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:34:25] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:34:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:34:51] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-28 03:34:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:34:51] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 03:34:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:34:51] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:53:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:53:32] local.DEBUG: Values for Sql:Array ( [0] => 302 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 364 ) [2024-05-28 03:53:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:53:32] local.DEBUG: Values for Sql:Array ( [0] => 300 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 364 ) [2024-05-28 03:53:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:53:32] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:54:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:54:02] local.DEBUG: Values for Sql:Array ( [0] => 302 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 364 ) [2024-05-28 03:54:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:54:02] local.DEBUG: Values for Sql:Array ( [0] => 300 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 364 ) [2024-05-28 03:54:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:54:02] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:55:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:55:10] local.DEBUG: Values for Sql:Array ( [0] => 302 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 364 ) [2024-05-28 03:55:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:55:10] local.DEBUG: Values for Sql:Array ( [0] => 302 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 364 [7] => 1 ) [2024-05-28 03:55:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 03:55:10] local.DEBUG: Values for Sql:Array ( [0] => 302 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 364 ) [2024-05-28 03:55:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:55:25] local.DEBUG: Values for Sql:Array ( [0] => 300 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 364 [8] => -1 ) [2024-05-28 03:55:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:55:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:55:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:55:26] local.DEBUG: Values for Sql:Array ( [0] => 300 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 364 [8] => 1 [9] => 364 [10] => -1 ) [2024-05-28 03:55:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:55:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 03:55:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 03:55:26] local.DEBUG: Values for Sql:Array ( [0] => 300 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 364 [8] => 364 [9] => -1 ) [2024-05-28 03:55:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 03:55:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 03:55:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:55:48] local.DEBUG: Values for Sql:Array ( [0] => 302 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 364 ) [2024-05-28 03:55:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:55:48] local.DEBUG: Values for Sql:Array ( [0] => 300 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 364 ) [2024-05-28 03:55:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:55:48] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 03:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 03:56:29] local.DEBUG: Values for Sql:Array ( [0] => 302 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 364 ) [2024-05-28 03:56:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 03:56:29] local.DEBUG: Values for Sql:Array ( [0] => 300 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 364 ) [2024-05-28 03:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 03:56:29] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 04:00:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 04:00:02] local.DEBUG: Values for Sql:Array ( [0] => 118 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 170 ) [2024-05-28 04:00:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 04:00:03] local.DEBUG: Values for Sql:Array ( [0] => 116 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 170 ) [2024-05-28 04:00:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 04:00:03] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 04:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:00:28] local.DEBUG: Values for Sql:Array ( [0] => 118 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 170 ) [2024-05-28 04:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:00:28] local.DEBUG: Values for Sql:Array ( [0] => 118 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 170 [7] => 1 ) [2024-05-28 04:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:00:28] local.DEBUG: Values for Sql:Array ( [0] => 118 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 170 ) [2024-05-28 04:00:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 04:00:53] local.DEBUG: Values for Sql:Array ( [0] => 118 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 170 ) [2024-05-28 04:00:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 04:00:53] local.DEBUG: Values for Sql:Array ( [0] => 116 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 170 ) [2024-05-28 04:00:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 04:00:53] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 04:22:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 04:22:55] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 04:22:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-28 04:22:56] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 04:22:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 04:22:56] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 04:45:40] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"chanellefernandez91@gmail.com","name":"Chanelle Fernandez"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Chanelle Fernandez,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">43418<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-28 04:45:41] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.22e7ef00-1cad-11ef-9278-525400fa05f6.18fbd84b1f0","object":"email"} [2024-05-28 04:46:09] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 381 [2024-05-28 04:46:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 04:46:37] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:46:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 04:46:37] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 381 ) [2024-05-28 04:46:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 04:46:37] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 04:46:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 04:46:52] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:46:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 04:46:52] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 381 ) [2024-05-28 04:46:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 04:46:52] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 04:47:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 04:47:03] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 381 [8] => -1 ) [2024-05-28 04:47:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 04:47:03] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 04:47:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 04:47:03] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 381 [8] => 1 [9] => 381 [10] => -1 ) [2024-05-28 04:47:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 04:47:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 04:47:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 04:47:03] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 381 [8] => 381 [9] => -1 ) [2024-05-28 04:47:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 04:47:03] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 04:47:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:47:32] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:47:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:47:32] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 [7] => 1 ) [2024-05-28 04:47:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:47:32] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:47:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:47:44] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 [7] => 11 ) [2024-05-28 04:48:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 04:48:02] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:48:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 04:48:02] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 381 ) [2024-05-28 04:48:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 04:48:02] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 04:48:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 04:48:19] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:48:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 04:48:19] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 381 ) [2024-05-28 04:48:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 04:48:19] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 04:48:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 04:48:20] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:48:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 04:48:20] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 381 ) [2024-05-28 04:48:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 04:48:20] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 04:48:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:48:30] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:48:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:48:30] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 [7] => 1 ) [2024-05-28 04:48:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:48:30] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:48:33] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-28 04:48:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:48:40] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 [7] => 2 ) [2024-05-28 04:48:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:48:44] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:48:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:48:48] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:48:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:48:59] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-05-28 04:49:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 04:49:13] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-05-28 04:49:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 04:49:47] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-28 04:49:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 04:49:47] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 381 ) [2024-05-28 04:49:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 04:49:47] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 04:50:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"chanellefernandez91@gmail.com","name":"chanellefernandez91@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello chanellefernandez91@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Chanelle Fernandez<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-28 04:50:12] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c4bdfcc0-1cad-11ef-8802-525400d6cd4f.18fbd88d68c","object":"email"} [2024-05-28 04:51:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"chanellefernandez91@gmail.com","name":"chanellefernandez91@gmail.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello chanellefernandez91@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"Chanelle Fernandez's Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Chanelle Fernandez's Group<\\/li>\\n <li>Updated Role in Group: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-28 04:51:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f06d2760-1cad-11ef-8802-525400d6cd4f.18fbd89f4d6","object":"email"} [2024-05-28 05:03:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 05:03:37] local.DEBUG: Values for Sql:Array ( [0] => 319 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 382 ) [2024-05-28 05:03:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 05:03:37] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 382 ) [2024-05-28 05:03:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 05:03:38] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 05:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 05:03:50] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 382 [8] => -1 ) [2024-05-28 05:03:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:03:50] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 05:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 05:03:50] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 382 [8] => 1 [9] => 382 [10] => -1 ) [2024-05-28 05:03:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:03:50] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 05:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 05:03:50] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 382 [8] => 382 [9] => -1 ) [2024-05-28 05:03:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:03:50] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 05:05:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-28 05:05:00] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 382 [8] => 126 ) [2024-05-28 05:05:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 05:05:00] local.DEBUG: Values for Sql:Array ( [0] => 126 ) [2024-05-28 05:31:05] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"wilhelminajordan@hotmail.com","name":"Wilhelmina Jordan"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Wilhelmina Jordan,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">91568<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-28 05:31:05] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7ab5c030-1cb3-11ef-aa08-525400f92481.18fbdae43b3","object":"email"} [2024-05-28 05:31:39] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 383 [2024-05-28 05:32:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 05:32:39] local.DEBUG: Values for Sql:Array ( [0] => 383 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:32:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-28 05:32:39] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:32:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:32:39] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 05:32:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-28 05:32:56] local.DEBUG: Values for Sql:Array ( [0] => 383 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:32:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-05-28 05:32:56] local.DEBUG: Values for Sql:Array ( [0] => 383 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:33:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 05:33:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-28 05:33:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:33:04] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 05:33:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-28 05:33:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:33:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:33:04] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-28 05:33:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 05:33:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-28 05:33:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:33:35] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 05:33:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-28 05:33:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:33:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:33:35] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-28 05:33:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 05:33:36] local.DEBUG: Values for Sql:Array ( [0] => 383 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:33:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-28 05:33:36] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:33:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:33:36] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 05:34:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 05:34:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-28 05:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:34:12] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 05:34:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-28 05:34:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:34:12] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-28 05:34:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-28 05:34:17] local.DEBUG: Values for Sql:Array ( [0] => 383 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:34:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-05-28 05:34:17] local.DEBUG: Values for Sql:Array ( [0] => 383 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:34:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-28 05:34:17] local.DEBUG: Values for Sql:Array ( [0] => 383 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:34:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-05-28 05:34:17] local.DEBUG: Values for Sql:Array ( [0] => 383 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:34:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 05:34:42] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-05-28 05:34:42] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-28 05:35:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 05:35:02] local.DEBUG: Values for Sql:Array ( [0] => 383 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:35:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-28 05:35:02] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:35:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:35:02] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 05:35:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 05:35:09] local.DEBUG: Values for Sql:Array ( [0] => 383 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:35:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-28 05:35:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 05:35:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 05:35:09] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 05:36:22] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"barcelona9@sbcglobal.net","name":"Dori Williams"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dori Williams,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">95779<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-28 05:36:23] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.380a8800-1cb4-11ef-a2ac-525400d4bb1c.18fbdb31c80","object":"email"} [2024-05-28 05:37:16] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"barcelona9@sbcglobal.net","name":"Dori Williams"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>80825<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-28 05:37:16] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.57d36ee0-1cb4-11ef-bc24-5254000b1a0e.18fbdb3ecce","object":"email"} [2024-05-28 05:37:49] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 384 [2024-05-28 05:40:52] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"barcelona9@sbcglobal.net","name":"Dori Williams"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>44508<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-28 05:40:52] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d8c784a1-1cb4-11ef-af14-52540064429e.18fbdb739e9","object":"email"} [2024-05-28 05:42:08] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"barcelona9@sbcglobal.net","name":"Dori Williams"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>75396<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-28 05:42:08] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.05f33d20-1cb5-11ef-9278-525400fa05f6.18fbdb861f2","object":"email"} [2024-05-28 06:38:19] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"charmadams72@gmail.com","name":"Charmaine Adams"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Charmaine Adams,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">58566<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-28 06:38:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.df3e82e0-1cbc-11ef-b8a9-525400dc08cf.18fbdebd20e","object":"email"} [2024-05-28 06:40:22] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 385 [2024-05-28 06:45:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 06:45:57] local.DEBUG: Values for Sql:Array ( [0] => 321 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 385 ) [2024-05-28 06:45:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 06:45:57] local.DEBUG: Values for Sql:Array ( [0] => 319 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 385 ) [2024-05-28 06:45:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 06:45:57] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-28 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (10, 300, 18, PENDING, ?, ?, ?, 2024-05-28 07:05:02, 2024-05-28 07:05:02)) [2024-05-28 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(484): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(428): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-05-28 11:40:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 11:40:09] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-28 11:40:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 11:40:09] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-28 11:40:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 11:40:09] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 11:40:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 11:40:22] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-28 11:40:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 11:40:22] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-28 11:40:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 11:40:22] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 13:09:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 13:09:05] local.DEBUG: Values for Sql:Array ( [0] => 18 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 ) [2024-05-28 13:09:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 13:09:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 ) [2024-05-28 13:09:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 13:09:05] local.DEBUG: Values for Sql:Array ( [0] => 261 ) [2024-05-28 14:43:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 14:43:48] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-28 14:43:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 14:43:48] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-28 14:43:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 14:43:48] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 14:43:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 14:43:49] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-28 14:43:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 14:43:49] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-28 14:43:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 14:43:49] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 14:43:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 14:43:50] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-28 14:43:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 14:43:50] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-28 14:43:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 14:43:50] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 14:43:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 14:43:51] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-28 14:43:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 14:43:51] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-28 14:43:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 14:43:52] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 14:45:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 14:45:02] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-28 14:45:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 14:45:02] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-28 14:45:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 14:45:02] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 15:26:57] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Nadiaaott@gmail.com","name":"Nadia Ott"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Nadia Ott,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">81966<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-28 15:26:58] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b9000410-1d06-11ef-b8a9-525400dc08cf.18fbfcfced1","object":"email"} [2024-05-28 15:27:22] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 386 [2024-05-28 15:27:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 15:27:43] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:27:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 15:27:43] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-05-28 15:27:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 15:27:43] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 15:31:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 15:31:35] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:31:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 15:31:35] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-05-28 15:31:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 15:31:35] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 15:35:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 15:35:35] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 15:35:35] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-28 15:35:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 15:35:35] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 15:35:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 15:35:56] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:35:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 15:35:56] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-28 15:35:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 15:35:56] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 15:36:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 15:36:00] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 [8] => -1 ) [2024-05-28 15:36:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 15:36:01] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 15:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 15:36:01] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 [8] => 1 [9] => 224 [10] => -1 ) [2024-05-28 15:36:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 15:36:01] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 15:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 15:36:01] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 [8] => 224 [9] => -1 ) [2024-05-28 15:36:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 15:36:01] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 15:36:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:36:11] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:36:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:36:11] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 [7] => 1 ) [2024-05-28 15:36:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:36:11] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:36:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:36:31] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:36:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:36:31] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 [7] => 1 ) [2024-05-28 15:36:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:36:31] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:38:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 15:38:09] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 [8] => -1 ) [2024-05-28 15:38:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 15:38:09] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 15:38:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 15:38:09] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 [8] => 1 [9] => 224 [10] => -1 ) [2024-05-28 15:38:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 15:38:09] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 15:38:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 15:38:09] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 [8] => 224 [9] => -1 ) [2024-05-28 15:38:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 15:38:09] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 15:38:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:38:11] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-28 15:38:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 15:38:13] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:38:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 15:38:13] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-28 15:38:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 15:38:13] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 15:38:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:38:27] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:38:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:38:27] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 [7] => 1 ) [2024-05-28 15:38:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:38:27] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:38:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 15:38:58] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:38:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 15:38:58] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-05-28 15:38:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 15:38:58] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 15:39:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 15:39:08] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:39:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 15:39:08] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-28 15:39:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 15:39:08] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 15:39:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:39:37] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:39:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:39:37] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 [7] => 1 ) [2024-05-28 15:39:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:39:37] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:39:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:39:48] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-05-28 15:40:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 15:40:03] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:40:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 15:40:03] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-28 15:40:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 15:40:03] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 15:40:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:40:07] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:40:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:40:07] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 [7] => 1 ) [2024-05-28 15:40:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:40:07] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:40:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:40:21] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:40:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:40:21] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 [7] => 1 ) [2024-05-28 15:40:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:40:21] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:40:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:40:32] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-28 15:40:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:40:56] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-28 15:41:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:41:01] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-28 15:41:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:41:01] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:41:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:41:01] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 [7] => 1 ) [2024-05-28 15:41:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:41:01] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:41:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:41:13] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:41:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:41:13] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 [7] => 1 ) [2024-05-28 15:41:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 15:41:13] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-28 15:41:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 15:41:37] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:41:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 15:41:37] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-28 15:41:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 15:41:37] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 15:41:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 15:41:45] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-28 15:41:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 15:41:45] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-28 15:41:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 15:41:45] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 16:35:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 16:35:17] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-28 16:35:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 16:35:17] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 16:35:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 16:35:17] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 16:45:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 16:45:19] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 357 ) [2024-05-28 16:45:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 16:45:19] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 357 ) [2024-05-28 16:45:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 16:45:19] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 16:45:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 16:45:45] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-28 16:45:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 16:45:45] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-05-28 16:45:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 16:45:45] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 16:46:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 16:46:33] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => -1 ) [2024-05-28 16:46:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 16:46:33] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 16:46:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 16:46:33] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 [9] => 320 [10] => -1 ) [2024-05-28 16:46:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 16:46:33] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 16:46:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 16:46:33] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 320 [9] => -1 ) [2024-05-28 16:46:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 16:46:33] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 16:46:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 16:46:35] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-28 16:46:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 16:46:35] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 [7] => 1 ) [2024-05-28 16:46:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 16:46:35] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-28 16:46:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 16:46:41] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-05-28 16:46:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 16:46:41] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-05-28 16:46:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 16:46:41] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 16:47:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 16:47:22] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 357 ) [2024-05-28 16:47:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 16:47:22] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 357 ) [2024-05-28 16:47:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 16:47:22] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 17:02:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 17:02:03] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-28 17:02:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 17:02:03] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-28 17:02:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 17:02:03] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 17:02:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 17:02:56] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 17:02:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-28 17:02:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 17:02:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 17:02:56] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 17:14:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 17:14:21] local.DEBUG: Values for Sql:Array ( [0] => 95 ) [2024-05-28 17:14:21] local.DEBUG: task visible_to: [2024-05-28 17:14:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-28 17:14:49] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 17:14:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-05-28 17:14:49] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 17:14:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-28 17:14:53] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 17:14:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-05-28 17:14:53] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => 1 ) [2024-05-28 17:14:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-28 17:14:54] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-28 17:14:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-28' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-05-28 17:14:54] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => 1 ) [2024-05-28 17:15:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 17:15:18] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-05-28 17:15:18] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-28 17:52:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 17:52:22] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 375 ) [2024-05-28 17:52:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 17:52:22] local.DEBUG: Values for Sql:Array ( [0] => 310 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 375 ) [2024-05-28 17:52:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 17:52:22] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 17:53:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 17:53:22] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 375 ) [2024-05-28 17:53:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 17:53:22] local.DEBUG: Values for Sql:Array ( [0] => 310 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 375 ) [2024-05-28 17:53:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 17:53:22] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 18:06:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 18:06:13] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 375 ) [2024-05-28 18:06:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 18:06:13] local.DEBUG: Values for Sql:Array ( [0] => 310 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 375 ) [2024-05-28 18:06:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 18:06:13] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 18:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 18:07:30] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:07:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 18:07:30] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 234 ) [2024-05-28 18:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 18:07:30] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 18:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 18:07:30] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:07:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 18:07:30] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 234 ) [2024-05-28 18:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 18:07:30] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 18:07:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:07:38] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:07:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:07:38] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 [7] => 1 ) [2024-05-28 18:07:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:07:38] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:08:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:08:14] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-05-28 18:08:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:08:23] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:08:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:08:23] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 [7] => 1 ) [2024-05-28 18:08:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:08:23] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:08:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:08:30] local.DEBUG: Values for Sql:Array ( [0] => 288 ) [2024-05-28 18:08:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:08:41] local.DEBUG: Values for Sql:Array ( [0] => 288 ) [2024-05-28 18:08:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:08:44] local.DEBUG: Values for Sql:Array ( [0] => 288 ) [2024-05-28 18:08:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:08:55] local.DEBUG: Values for Sql:Array ( [0] => 288 ) [2024-05-28 18:08:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:08:56] local.DEBUG: Values for Sql:Array ( [0] => 288 ) [2024-05-28 18:09:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:00] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:09:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:00] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 [7] => 1 ) [2024-05-28 18:09:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:00] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:09:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:06] local.DEBUG: Values for Sql:Array ( [0] => 279 ) [2024-05-28 18:09:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:13] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:09:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:13] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 [7] => 1 ) [2024-05-28 18:09:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:13] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:09:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:18] local.DEBUG: Values for Sql:Array ( [0] => 249 ) [2024-05-28 18:09:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:22] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:09:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:22] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 [7] => 1 ) [2024-05-28 18:09:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:22] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:09:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:24] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 [7] => 10 ) [2024-05-28 18:09:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:26] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:09:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:26] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 [7] => 1 ) [2024-05-28 18:09:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:26] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:09:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:30] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 [7] => 11 ) [2024-05-28 18:09:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-05-31' and `tasks`.`due_by` > '2024-05-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:31] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:09:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:31] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 [7] => 1 ) [2024-05-28 18:09:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:31] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 234 ) [2024-05-28 18:09:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:40] local.DEBUG: Values for Sql:Array ( [0] => 1 ) [2024-05-28 18:09:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-05-28 18:09:40] local.DEBUG: Values for Sql:Array ( [0] => 0 ) [2024-05-28 18:09:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:53] local.DEBUG: Values for Sql:Array ( [0] => 291 ) [2024-05-28 18:09:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-28 18:09:56] local.DEBUG: Values for Sql:Array ( [0] => 291 ) [2024-05-28 18:12:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 18:12:10] local.DEBUG: Values for Sql:Array ( [0] => 272 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 331 ) [2024-05-28 18:12:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 18:12:10] local.DEBUG: Values for Sql:Array ( [0] => 270 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 331 ) [2024-05-28 18:12:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 18:12:10] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 23:18:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 23:18:00] local.DEBUG: Values for Sql:Array ( [0] => 257 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 316 ) [2024-05-28 23:18:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 23:18:00] local.DEBUG: Values for Sql:Array ( [0] => 255 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 316 ) [2024-05-28 23:18:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 23:18:00] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 23:28:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 23:28:39] local.DEBUG: Values for Sql:Array ( [0] => 323 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 387 ) [2024-05-28 23:28:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 23:28:39] local.DEBUG: Values for Sql:Array ( [0] => 321 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 387 ) [2024-05-28 23:28:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 23:28:39] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 23:29:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 23:29:31] local.DEBUG: Values for Sql:Array ( [0] => 323 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 387 ) [2024-05-28 23:29:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 23:29:31] local.DEBUG: Values for Sql:Array ( [0] => 321 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 387 ) [2024-05-28 23:29:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 23:29:31] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 23:29:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 23:29:35] local.DEBUG: Values for Sql:Array ( [0] => 321 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 387 [8] => -1 ) [2024-05-28 23:29:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 23:29:35] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 23:29:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 23:29:35] local.DEBUG: Values for Sql:Array ( [0] => 321 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 387 [8] => 1 [9] => 387 [10] => -1 ) [2024-05-28 23:29:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 23:29:35] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-28 23:29:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-28 23:29:35] local.DEBUG: Values for Sql:Array ( [0] => 321 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 387 [8] => 387 [9] => -1 ) [2024-05-28 23:29:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-28 23:29:35] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-28 23:29:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 23:29:45] local.DEBUG: Values for Sql:Array ( [0] => 323 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 387 ) [2024-05-28 23:29:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 23:29:45] local.DEBUG: Values for Sql:Array ( [0] => 321 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 387 ) [2024-05-28 23:29:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 23:29:45] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 23:29:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 23:29:55] local.DEBUG: Values for Sql:Array ( [0] => 323 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 387 ) [2024-05-28 23:29:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 23:29:55] local.DEBUG: Values for Sql:Array ( [0] => 321 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 387 ) [2024-05-28 23:29:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 23:29:55] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 23:46:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 23:46:27] local.DEBUG: Values for Sql:Array ( [0] => 226 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 282 ) [2024-05-28 23:46:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 23:46:27] local.DEBUG: Values for Sql:Array ( [0] => 224 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 282 ) [2024-05-28 23:46:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 23:46:27] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 23:47:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 23:47:15] local.DEBUG: Values for Sql:Array ( [0] => 226 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 282 ) [2024-05-28 23:47:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 23:47:15] local.DEBUG: Values for Sql:Array ( [0] => 224 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 282 ) [2024-05-28 23:47:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 23:47:15] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-28 23:47:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-28 23:47:16] local.DEBUG: Values for Sql:Array ( [0] => 226 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 282 ) [2024-05-28 23:47:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-28 23:47:16] local.DEBUG: Values for Sql:Array ( [0] => 224 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 282 ) [2024-05-28 23:47:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-28 23:47:16] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 00:02:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 00:02:03] local.DEBUG: Values for Sql:Array ( [0] => 318 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 381 ) [2024-05-29 00:02:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 00:02:03] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 381 ) [2024-05-29 00:02:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 00:02:03] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 00:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 00:02:30] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-29 00:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 00:02:30] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-29 00:02:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 00:02:30] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-29 00:02:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 00:02:30] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-29 00:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 00:02:30] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 00:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 00:02:30] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 00:02:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 00:02:43] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-29 00:02:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 00:02:43] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-29 00:02:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 00:02:43] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 02:28:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-29 02:28:20] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:28:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:28:20] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-29 02:28:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-29 02:28:20] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:28:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:28:20] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-29 02:28:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-29 02:28:20] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:28:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-29 02:28:20] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-29 02:28:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-29 02:28:20] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:28:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:28:20] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:28:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-29 02:28:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 94 ) [2024-05-29 02:28:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 02:28:49] local.DEBUG: Values for Sql:Array ( [0] => 94 ) [2024-05-29 02:28:49] local.DEBUG: Current Balance: 0 [2024-05-29 02:29:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-29 02:29:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:29:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:29:15] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-29 02:29:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-29 02:29:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:29:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:29:15] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-29 02:29:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-29 02:29:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:29:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-29 02:29:15] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-29 02:29:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-29 02:29:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:29:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:29:15] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:29:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-29 02:29:42] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 94 ) [2024-05-29 02:29:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 02:29:42] local.DEBUG: Values for Sql:Array ( [0] => 94 ) [2024-05-29 02:29:42] local.DEBUG: Current Balance: 0 [2024-05-29 02:30:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-29 02:30:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:30:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:30:00] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-29 02:30:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-29 02:30:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:30:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:30:00] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-29 02:30:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-29 02:30:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:30:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-29 02:30:00] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-29 02:30:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-29 02:30:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:30:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:30:00] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:30:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-29 02:30:28] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 94 ) [2024-05-29 02:30:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 02:30:28] local.DEBUG: Values for Sql:Array ( [0] => 94 ) [2024-05-29 02:30:28] local.DEBUG: Current Balance: 0 [2024-05-29 02:30:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 02:30:45] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:30:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:30:45] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:30:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-29 02:30:45] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:30:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:30:45] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-29 02:30:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 02:30:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:30:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:30:52] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:30:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-29 02:30:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 3 ) [2024-05-29 02:30:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:30:52] local.DEBUG: Values for Sql:Array ( [0] => 173 [1] => 115 ) [2024-05-29 02:30:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 02:30:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:30:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:30:55] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:30:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-29 02:30:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:30:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:30:55] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-29 02:31:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 02:31:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:31:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:31:06] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:31:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-29 02:31:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:31:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:31:06] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 172 [3] => 171 [4] => 109 ) [2024-05-29 02:31:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 02:31:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:31:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:31:09] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:31:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-29 02:31:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:31:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:31:09] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-29 02:31:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-29 02:31:28] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:31:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:31:28] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-29 02:31:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-29 02:31:28] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:31:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:31:28] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-29 02:31:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-29 02:31:28] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:31:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-29 02:31:28] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-29 02:31:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-29 02:31:28] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:31:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:31:28] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:34:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 02:34:41] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:34:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-29 02:34:41] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:34:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:34:41] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 02:34:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:34:43] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:34:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-29 02:34:43] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:35:00] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-29 02:35:00] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:35:03] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:35:03] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => 1 ) [2024-05-29 02:35:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:35:06] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-29 02:35:06] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 02:35:09] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-29 02:35:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:35:09] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 02:35:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:35:12] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-29 02:35:12] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:35:28] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-29 02:35:28] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:35:31] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:35:31] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => 1 ) [2024-05-29 02:35:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 02:35:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:35:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:35:33] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:35:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-29 02:35:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:35:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:35:33] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-29 02:36:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:36:39] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:36:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-29 02:36:39] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:36:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:36:44] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:36:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:36:44] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => 2 ) [2024-05-29 02:36:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:36:47] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:36:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-29 02:36:47] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:36:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:36:49] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:36:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-29 02:36:49] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => 1 ) [2024-05-29 02:36:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 02:36:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:36:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:36:52] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:36:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-29 02:36:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:36:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:36:52] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-29 02:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 02:36:54] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:36:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-29 02:36:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:36:54] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 02:36:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 02:36:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 02:36:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:36:56] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 02:36:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-29 02:36:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:36:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:36:56] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-29 02:37:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 02:37:42] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:37:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-29 02:37:42] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 02:37:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 02:37:42] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 02:54:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 02:54:19] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-29 02:54:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 02:54:19] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-29 02:54:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 02:54:19] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 02:58:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 02:58:27] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-29 02:58:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 02:58:27] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-05-29 02:58:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 02:58:27] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 03:01:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 03:01:46] local.DEBUG: Values for Sql:Array ( [0] => 284 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 345 ) [2024-05-29 03:01:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 03:01:46] local.DEBUG: Values for Sql:Array ( [0] => 282 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 345 ) [2024-05-29 03:01:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 03:01:46] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 04:47:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 04:47:14] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-05-29 04:47:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 04:47:14] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-05-29 04:47:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 04:47:14] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 05:22:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 05:22:52] local.DEBUG: Values for Sql:Array ( [0] => 18 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 ) [2024-05-29 05:22:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 05:22:52] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 ) [2024-05-29 05:22:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 05:22:52] local.DEBUG: Values for Sql:Array ( [0] => 261 ) [2024-05-29 05:27:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 05:27:36] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-05-29 05:27:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 05:27:37] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-05-29 05:27:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 05:27:37] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 06:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 06:50:18] local.DEBUG: Values for Sql:Array ( [0] => 166 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 217 ) [2024-05-29 06:50:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 06:50:18] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 217 ) [2024-05-29 06:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 06:50:18] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 06:50:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 06:50:34] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 217 [8] => -1 ) [2024-05-29 06:50:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 06:50:34] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-29 06:50:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 06:50:34] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 217 [8] => 1 [9] => 217 [10] => -1 ) [2024-05-29 06:50:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 06:50:34] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 06:50:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 06:50:34] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 217 [8] => 217 [9] => -1 ) [2024-05-29 06:50:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 06:50:34] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-29 06:50:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 06:50:47] local.DEBUG: Values for Sql:Array ( [0] => 166 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 217 ) [2024-05-29 06:50:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 06:50:47] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 217 ) [2024-05-29 06:50:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 06:50:47] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 07:05:03] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-29 07:05:03] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (312, 302, 220, PENDING, ?, ?, ?, 2024-05-29 07:05:03, 2024-05-29 07:05:03)) [2024-05-29 07:05:03] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(484): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(428): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-05-29 09:07:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 09:07:13] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 09:07:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-29 09:07:13] local.DEBUG: Values for Sql:Array ( [0] => 266 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 09:07:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 09:07:13] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 09:07:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:07:21] local.DEBUG: Values for Sql:Array ( [0] => 268 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 326 ) [2024-05-29 09:07:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:07:21] local.DEBUG: Values for Sql:Array ( [0] => 268 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 326 [7] => 1 ) [2024-05-29 09:07:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:07:21] local.DEBUG: Values for Sql:Array ( [0] => 268 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 326 ) [2024-05-29 09:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:07:30] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-29 09:07:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:07:35] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-29 09:07:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 09:07:37] local.DEBUG: Values for Sql:Array ( [0] => 266 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-29 09:07:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 09:07:37] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 09:07:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-29 09:07:37] local.DEBUG: Values for Sql:Array ( [0] => 266 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 09:07:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 09:07:37] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-29 09:07:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 09:07:46] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 09:07:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-29 09:07:46] local.DEBUG: Values for Sql:Array ( [0] => 266 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 09:07:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 09:07:46] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 09:07:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:07:49] local.DEBUG: Values for Sql:Array ( [0] => 268 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 326 ) [2024-05-29 09:07:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:07:49] local.DEBUG: Values for Sql:Array ( [0] => 268 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 326 [7] => 1 ) [2024-05-29 09:07:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:07:49] local.DEBUG: Values for Sql:Array ( [0] => 268 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 326 ) [2024-05-29 09:07:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:07:54] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-05-29 09:08:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:08:12] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-05-29 09:08:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:08:13] local.DEBUG: Values for Sql:Array ( [0] => 268 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 326 ) [2024-05-29 09:08:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:08:13] local.DEBUG: Values for Sql:Array ( [0] => 268 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 326 [7] => 1 ) [2024-05-29 09:08:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 09:08:13] local.DEBUG: Values for Sql:Array ( [0] => 268 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 326 ) [2024-05-29 09:08:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 09:08:14] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 09:08:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-29 09:08:14] local.DEBUG: Values for Sql:Array ( [0] => 266 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-29 09:08:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 09:08:14] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 09:41:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 09:41:55] local.DEBUG: Values for Sql:Array ( [0] => 18 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 ) [2024-05-29 09:41:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 09:41:55] local.DEBUG: Values for Sql:Array ( [0] => 18 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 ) [2024-05-29 09:41:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 09:41:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 ) [2024-05-29 09:41:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 09:41:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 ) [2024-05-29 09:41:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 09:41:55] local.DEBUG: Values for Sql:Array ( [0] => 261 ) [2024-05-29 09:41:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 09:41:55] local.DEBUG: Values for Sql:Array ( [0] => 261 ) [2024-05-29 09:42:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 09:42:45] local.DEBUG: Values for Sql:Array ( [0] => 18 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 ) [2024-05-29 09:42:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 09:42:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 ) [2024-05-29 09:42:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 09:42:45] local.DEBUG: Values for Sql:Array ( [0] => 261 ) [2024-05-29 09:42:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 09:42:45] local.DEBUG: Values for Sql:Array ( [0] => 18 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 ) [2024-05-29 09:42:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 09:42:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 ) [2024-05-29 09:42:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 09:42:45] local.DEBUG: Values for Sql:Array ( [0] => 261 ) [2024-05-29 10:30:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 10:30:58] local.DEBUG: Values for Sql:Array ( [0] => 287 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 348 ) [2024-05-29 10:30:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 10:30:58] local.DEBUG: Values for Sql:Array ( [0] => 285 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 348 ) [2024-05-29 10:30:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 10:30:58] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 10:36:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 10:36:39] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-29 10:36:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 10:36:39] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-29 10:36:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 10:36:39] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-29 10:39:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 10:39:57] local.DEBUG: Values for Sql:Array ( [0] => 18 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 ) [2024-05-29 10:39:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 10:39:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 ) [2024-05-29 10:39:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 10:39:57] local.DEBUG: Values for Sql:Array ( [0] => 261 ) [2024-05-29 11:20:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 11:20:42] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-29 11:20:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 11:20:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-29 11:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 11:20:43] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-29 11:22:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 11:22:11] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-29 11:22:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 11:22:11] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-29 11:22:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 11:22:11] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-29 11:22:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 11:22:36] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-29 11:22:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 11:22:36] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-29 11:22:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 11:22:36] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-29 11:23:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 11:23:41] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-29 11:23:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 11:23:41] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-29 11:23:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 11:23:41] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-29 11:24:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 11:24:15] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-29 11:24:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 11:24:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-29 11:24:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 11:24:15] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-29 11:24:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 11:24:59] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-29 11:24:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 11:24:59] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-29 11:24:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 11:24:59] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-29 11:25:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 11:25:47] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-29 11:25:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 11:25:47] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-29 11:25:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 11:25:47] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-29 11:52:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 11:52:47] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-29 11:52:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 11:52:47] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-29 11:52:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 11:52:47] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-29 12:26:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 12:26:04] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00601 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-05-29 12:26:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 12:26:04] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00601 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-05-29 12:26:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 12:26:04] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-05-29 12:28:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 12:28:44] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 16250 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Pakistan ) [2024-05-29 12:28:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 12:28:44] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 16250 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Pakistan ) [2024-05-29 12:28:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 12:28:44] local.DEBUG: Values for Sql:Array ( [0] => 259 ) [2024-05-29 12:38:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 12:38:10] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 16250 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Pakistan ) [2024-05-29 12:38:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 12:38:10] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 16250 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Pakistan ) [2024-05-29 12:38:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 12:38:10] local.DEBUG: Values for Sql:Array ( [0] => 259 ) [2024-05-29 13:42:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 13:42:17] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-29 13:42:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 13:42:17] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-29 13:42:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 13:42:17] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-29 13:42:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 13:42:17] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-29 13:42:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 13:42:17] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 13:42:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 13:42:17] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 13:43:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 13:43:24] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 [8] => -1 ) [2024-05-29 13:43:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 13:43:24] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-29 13:43:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 13:43:24] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 [8] => 1 [9] => 380 [10] => -1 ) [2024-05-29 13:43:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 13:43:24] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 13:43:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 13:43:24] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 [8] => 380 [9] => -1 ) [2024-05-29 13:43:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 13:43:24] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-29 13:43:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 13:43:31] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-29 13:43:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 13:43:31] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 [7] => 1 ) [2024-05-29 13:43:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 13:43:31] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-29 15:58:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 15:58:33] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-05-29 15:58:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 15:58:33] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-05-29 15:58:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 15:58:33] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-05-29 16:40:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 16:40:35] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 375 ) [2024-05-29 16:40:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 16:40:35] local.DEBUG: Values for Sql:Array ( [0] => 310 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 375 ) [2024-05-29 16:40:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 16:40:35] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 19:02:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 19:02:53] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 377 ) [2024-05-29 19:02:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 19:02:53] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 377 ) [2024-05-29 19:02:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 19:02:53] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 19:03:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 19:03:20] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 377 ) [2024-05-29 19:03:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 19:03:20] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 377 ) [2024-05-29 19:03:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 19:03:20] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 21:24:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 21:24:05] local.DEBUG: Values for Sql:Array ( [0] => 292 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 354 ) [2024-05-29 21:24:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 21:24:05] local.DEBUG: Values for Sql:Array ( [0] => 290 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 354 ) [2024-05-29 21:24:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 21:24:05] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 21:24:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 21:24:13] local.DEBUG: Values for Sql:Array ( [0] => 290 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 354 [8] => -1 ) [2024-05-29 21:24:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 21:24:13] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-29 21:24:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 21:24:13] local.DEBUG: Values for Sql:Array ( [0] => 290 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 354 [8] => 1 [9] => 354 [10] => -1 ) [2024-05-29 21:24:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 21:24:13] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 21:24:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 21:24:13] local.DEBUG: Values for Sql:Array ( [0] => 290 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 354 [8] => 354 [9] => -1 ) [2024-05-29 21:24:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 21:24:13] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-29 21:24:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 21:24:15] local.DEBUG: Values for Sql:Array ( [0] => 292 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 354 ) [2024-05-29 21:24:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 21:24:15] local.DEBUG: Values for Sql:Array ( [0] => 290 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 354 ) [2024-05-29 21:24:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 21:24:15] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 21:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => -1 ) [2024-05-29 21:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => -1 ) [2024-05-29 21:56:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-29 21:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => 1 [9] => 172 [10] => -1 ) [2024-05-29 21:56:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 21:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => 172 [9] => -1 ) [2024-05-29 21:56:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-29 21:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => 1 [9] => 172 [10] => -1 ) [2024-05-29 21:56:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-29 21:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => 172 [9] => -1 ) [2024-05-29 21:56:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-29 21:56:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-29 21:56:35] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-29 23:54:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 23:54:57] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 355 ) [2024-05-29 23:54:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 23:54:57] local.DEBUG: Values for Sql:Array ( [0] => 291 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 355 ) [2024-05-29 23:54:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 23:54:57] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 23:55:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 23:55:10] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 355 ) [2024-05-29 23:55:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 23:55:10] local.DEBUG: Values for Sql:Array ( [0] => 291 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 355 ) [2024-05-29 23:55:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 23:55:10] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 23:55:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 23:55:53] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 355 ) [2024-05-29 23:55:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 23:55:53] local.DEBUG: Values for Sql:Array ( [0] => 291 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 355 ) [2024-05-29 23:55:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 23:55:53] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-29 23:55:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-01' and `tasks`.`due_by` > '2024-05-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 23:55:55] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 355 ) [2024-05-29 23:55:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 23:55:55] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 355 [7] => 1 ) [2024-05-29 23:55:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-29 23:55:55] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 355 ) [2024-05-29 23:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-29 23:56:10] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 355 ) [2024-05-29 23:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-29 23:56:10] local.DEBUG: Values for Sql:Array ( [0] => 291 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 355 ) [2024-05-29 23:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-29 23:56:10] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 00:48:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 00:48:35] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 ) [2024-05-30 00:48:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 00:48:36] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 ) [2024-05-30 00:48:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 00:48:36] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 01:20:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 01:20:50] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 ) [2024-05-30 01:20:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 01:20:50] local.DEBUG: Values for Sql:Array ( [0] => 162 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 216 ) [2024-05-30 01:20:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 01:20:50] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 01:21:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 01:21:23] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 ) [2024-05-30 01:21:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 01:21:23] local.DEBUG: Values for Sql:Array ( [0] => 162 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 216 ) [2024-05-30 01:21:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 01:21:23] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 01:23:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:23:36] local.DEBUG: Values for Sql:Array ( [0] => 162 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 216 [8] => -1 ) [2024-05-30 01:23:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:23:36] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 01:23:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:23:36] local.DEBUG: Values for Sql:Array ( [0] => 162 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 216 [8] => 1 [9] => 216 [10] => -1 ) [2024-05-30 01:23:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:23:36] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:23:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:23:36] local.DEBUG: Values for Sql:Array ( [0] => 162 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 216 [8] => 216 [9] => -1 ) [2024-05-30 01:23:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:23:36] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 01:23:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 01:23:47] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 ) [2024-05-30 01:23:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 01:23:47] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 [7] => 1 ) [2024-05-30 01:23:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 01:23:47] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 ) [2024-05-30 01:24:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:24:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:24:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:24:29] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:24:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:24:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:24:29] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 01:24:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:24:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:24:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:24:32] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:24:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:24:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:24:32] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 01:24:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 01:24:42] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-05-30 01:24:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 01:24:43] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 01:24:43] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 01:24:45] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 01:24:45] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 01:24:46] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 ) [2024-05-30 01:24:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 01:24:46] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 [7] => 1 ) [2024-05-30 01:24:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 01:24:46] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 ) [2024-05-30 01:24:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 01:24:47] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 01:24:47] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 01:24:49] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 01:24:49] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 01:24:52] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 01:24:52] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:24:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:24:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:24:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:24:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:24:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:24:53] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 01:24:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 01:24:54] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 01:24:54] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:24:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:24:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:24:56] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:24:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:24:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:24:56] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 01:24:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 01:24:56] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 01:24:56] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 01:24:59] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:24:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 01:24:59] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:25:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:25:02] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:25:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:25:02] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:25:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:25:02] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:25:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:25:02] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 01:25:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:25:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:25:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:25:05] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:25:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:25:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:25:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:25:05] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 01:25:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 01:25:49] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 ) [2024-05-30 01:25:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 01:25:49] local.DEBUG: Values for Sql:Array ( [0] => 162 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 216 ) [2024-05-30 01:25:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 01:25:49] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 01:26:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:26:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:26:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:05] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:26:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:26:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:26:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:05] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 01:26:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:26:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:26:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:07] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:26:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:26:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:26:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:07] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 01:26:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:26:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:26:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:26:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:26:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:26:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:10] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 01:26:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:26:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:26:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:12] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:26:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:26:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:26:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:12] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 01:26:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:26:44] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:26:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:26:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:26:44] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:26:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:44] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 01:26:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 01:26:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 01:26:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:46] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 01:26:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 01:26:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 01:26:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 01:26:46] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 02:13:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 02:13:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 258 ) [2024-05-30 02:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 02:13:26] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 ) [2024-05-30 02:13:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 02:13:26] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 02:22:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 02:22:39] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 02:22:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-30 02:22:39] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 02:22:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 02:22:39] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 02:22:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 02:22:41] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 02:22:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-30 02:22:41] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 02:22:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 02:22:41] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 02:25:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 02:25:37] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 02:25:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-30 02:25:37] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 02:25:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 02:25:37] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 02:25:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 02:25:40] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 02:25:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-30 02:25:40] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 02:25:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 02:25:40] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 03:05:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:05:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:05:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:05:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:05:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:05:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:05:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:05:58] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 03:06:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:06:01] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:06:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:01] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:06:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:06:01] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:01] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 03:06:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:06:01] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:06:01] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:06:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:06:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:04] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:06:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:06:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:04] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 03:06:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:06:04] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:06:04] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:06:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:06:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:06] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:06:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:06:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:06] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 03:06:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:06:06] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:06:06] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:06:09] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:06:09] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:06:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:06:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:09] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:06:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:06:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:09] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 03:06:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:06:11] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:06:11] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:06:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:06:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:12] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:06:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:06:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:12] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 03:06:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:06:14] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:06:14] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:06:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:06:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:33] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:06:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:06:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:33] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 03:06:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:06:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:06:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:35] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:06:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:06:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:36] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 03:06:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:06:50] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:06:50] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:06:52] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:06:52] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:06:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:06:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:55] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:06:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:06:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:55] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 03:06:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:06:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:06:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:06:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:06:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:06:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:06:58] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 03:07:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:07:02] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:07:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:07:02] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:07:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:07:05] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:07:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:07:05] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:07:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:07:06] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:07:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:07:06] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:07:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 03:07:09] local.DEBUG: Values for Sql:Array ( [0] => 277 ) [2024-05-30 03:07:09] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-05-30 03:07:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 03:07:09] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:07:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 03:07:09] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:08:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:08:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:08:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:08:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:08:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:08:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:08:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:08:58] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 03:09:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 03:09:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 03:09:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:09:00] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 03:09:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 03:09:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 03:09:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 03:09:01] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 05:26:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 05:26:13] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Pakistan ) [2024-05-30 05:26:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 05:26:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00602 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Pakistan ) [2024-05-30 05:26:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 05:26:13] local.DEBUG: Values for Sql:Array ( [0] => 259 ) [2024-05-30 07:02:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 07:02:24] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Peru ) [2024-05-30 07:02:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 07:02:24] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 88 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00602 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru ) [2024-05-30 07:02:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 07:02:24] local.DEBUG: Values for Sql:Array ( [0] => 259 ) [2024-05-30 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-30 07:23:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 07:23:56] local.DEBUG: Values for Sql:Array ( [0] => 18 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 ) [2024-05-30 07:23:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 07:23:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 ) [2024-05-30 07:23:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 07:23:56] local.DEBUG: Values for Sql:Array ( [0] => 261 ) [2024-05-30 07:23:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 07:23:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => -1 ) [2024-05-30 07:23:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 07:23:59] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 203 [3] => 202 [4] => 173 [5] => 172 [6] => 171 [7] => 128 [8] => 126 [9] => 125 [10] => 124 [11] => 123 ) [2024-05-30 07:23:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 07:23:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => 1 [13] => 30 [14] => -1 ) [2024-05-30 07:23:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 07:23:59] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 07:23:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 07:23:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => 30 [13] => -1 ) [2024-05-30 07:23:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 07:23:59] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => 256 [2] => 246 [3] => 245 [4] => 243 [5] => 208 [6] => 203 [7] => 202 [8] => 197 [9] => 196 [10] => 194 [11] => 173 ) [2024-05-30 08:41:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 08:41:28] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Uganda ) [2024-05-30 08:41:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 08:41:29] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda ) [2024-05-30 08:41:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 08:41:29] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Uganda ) [2024-05-30 08:41:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 08:41:29] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda ) [2024-05-30 08:41:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 08:41:29] local.DEBUG: Values for Sql:Array ( [0] => 259 ) [2024-05-30 08:41:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 08:41:29] local.DEBUG: Values for Sql:Array ( [0] => 259 ) [2024-05-30 09:52:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-30 09:52:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:52:49] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-30 09:52:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-30 09:52:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:52:49] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-30 09:52:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-30 09:52:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-30 09:52:49] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-30 09:52:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:52:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:52:49] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:52:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 09:52:52] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 09:52:52] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-30 09:52:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:52:53] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-30 09:52:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-30 09:52:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:52:53] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-30 09:52:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-30 09:52:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-30 09:52:53] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-30 09:52:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:52:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:52:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:52:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:52:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 09:52:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:52:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:52:55] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:52:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:52:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:52:55] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 09:52:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 09:52:55] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 09:52:55] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 09:52:58] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:52:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 09:52:58] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 09:53:02] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 09:53:02] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 09:53:02] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 09:53:02] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 09:53:04] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 09:53:04] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-30 09:53:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:05] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-30 09:53:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-30 09:53:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:05] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-30 09:53:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-30 09:53:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-30 09:53:05] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-30 09:53:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:53:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:53:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:05] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:53:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-30 09:53:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:07] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-30 09:53:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-30 09:53:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:07] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-30 09:53:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-30 09:53:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-30 09:53:07] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-30 09:53:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:53:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:53:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:07] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:53:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 09:53:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:53:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:53:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:53:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:10] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 09:53:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 09:53:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:53:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:12] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:53:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:53:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:12] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 09:53:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-30 09:53:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:13] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-30 09:53:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-30 09:53:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:13] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-30 09:53:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-30 09:53:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-30 09:53:13] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-30 09:53:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:53:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:53:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:13] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-30 09:53:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:15] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-30 09:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-30 09:53:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:15] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-30 09:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-30 09:53:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-30 09:53:15] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-30 09:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:53:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:53:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:15] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:53:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-30 09:53:17] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:17] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-30 09:53:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-30 09:53:17] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:17] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-30 09:53:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-30 09:53:17] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-30 09:53:17] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-30 09:53:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:53:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:53:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:53:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-30 09:53:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:33] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-30 09:53:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-30 09:53:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:33] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-30 09:53:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-30 09:53:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-30 09:53:33] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-30 09:53:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:53:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:53:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:33] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:53:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 09:53:39] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:53:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:39] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:53:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:53:39] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:53:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:53:39] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 09:55:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-30 09:55:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:55:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:55:03] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-30 09:55:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-30 09:55:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:55:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:55:03] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-30 09:55:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-30 09:55:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:55:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-30 09:55:03] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-30 09:55:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:55:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:55:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:55:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:55:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-30 09:55:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:55:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:55:05] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-30 09:55:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-30 09:55:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:55:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:55:05] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-30 09:55:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-30 09:55:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:55:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-30 09:55:05] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-30 09:55:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:55:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:55:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:55:05] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:55:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 09:55:22] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:55:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:55:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 09:55:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:55:22] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:55:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:55:22] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 09:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-05-30 09:55:51] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:55:51] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 ) [2024-05-30 09:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-05-30 09:55:51] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:55:51] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 ) [2024-05-30 09:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-05-30 09:55:51] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 09:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-05-30 09:55:51] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 2 [2] => 115 [3] => 208 [4] => 173 ) [2024-05-30 09:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 09:55:51] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 09:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 09:55:51] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 10:02:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 10:02:27] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 315 ) [2024-05-30 10:02:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 10:02:27] local.DEBUG: Values for Sql:Array ( [0] => 254 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 315 ) [2024-05-30 10:02:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 10:02:27] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 10:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:02:30] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 315 ) [2024-05-30 10:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:02:30] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 315 [7] => 1 ) [2024-05-30 10:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:02:30] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 315 ) [2024-05-30 10:02:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:02:41] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-05-30 10:02:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:02:51] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 315 ) [2024-05-30 10:02:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:02:51] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 315 [7] => 1 ) [2024-05-30 10:02:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:02:51] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 315 ) [2024-05-30 10:03:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:03:03] local.DEBUG: Values for Sql:Array ( [0] => 279 ) [2024-05-30 10:03:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:03:25] local.DEBUG: Values for Sql:Array ( [0] => 279 ) [2024-05-30 10:03:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:03:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 315 ) [2024-05-30 10:03:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:03:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 315 [7] => 1 ) [2024-05-30 10:03:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 10:03:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 315 ) [2024-05-30 10:03:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 10:03:27] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 315 ) [2024-05-30 10:03:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 10:03:27] local.DEBUG: Values for Sql:Array ( [0] => 254 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 315 ) [2024-05-30 10:03:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 10:03:27] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 12:28:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 12:28:52] local.DEBUG: Values for Sql:Array ( [0] => 196 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 245 ) [2024-05-30 12:28:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 12:28:52] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 ) [2024-05-30 12:28:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 12:28:52] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 13:14:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => -1 ) [2024-05-30 13:14:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 13:14:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => 1 [9] => 172 [10] => -1 ) [2024-05-30 13:14:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 13:14:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => 172 [9] => -1 ) [2024-05-30 13:14:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => -1 ) [2024-05-30 13:14:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 13:14:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 13:14:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => 1 [9] => 172 [10] => -1 ) [2024-05-30 13:14:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 13:14:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => 172 [9] => -1 ) [2024-05-30 13:14:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:14:14] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 13:14:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 13:14:35] local.DEBUG: Values for Sql:Array ( [0] => 122 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 172 ) [2024-05-30 13:14:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 13:14:35] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 ) [2024-05-30 13:14:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 13:14:35] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 13:14:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 13:14:36] local.DEBUG: Values for Sql:Array ( [0] => 122 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 172 ) [2024-05-30 13:14:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 13:14:36] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 ) [2024-05-30 13:14:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 13:14:36] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 13:15:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:15:08] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => -1 ) [2024-05-30 13:15:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:15:08] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 13:15:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:15:08] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => 1 [9] => 172 [10] => -1 ) [2024-05-30 13:15:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:15:08] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 13:15:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:15:08] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 [8] => 172 [9] => -1 ) [2024-05-30 13:15:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:15:08] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 13:15:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-30 13:15:20] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 ) [2024-05-30 13:15:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:15:20] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 ) [2024-05-30 13:15:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-30 13:15:21] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 ) [2024-05-30 13:15:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:15:21] local.DEBUG: Values for Sql:Array ( [0] => 122 [1] => 121 [2] => 120 [3] => 119 [4] => 118 [5] => 117 [6] => 116 [7] => 115 [8] => 109 [9] => 107 ) [2024-05-30 13:15:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-30 13:15:24] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 ) [2024-05-30 13:15:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:15:24] local.DEBUG: Values for Sql:Array ( [0] => 106 [1] => 105 [2] => 104 [3] => 102 [4] => 101 [5] => 99 [6] => 98 [7] => 97 [8] => 95 [9] => 94 ) [2024-05-30 13:15:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-30 13:15:26] local.DEBUG: Values for Sql:Array ( [0] => 120 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 172 ) [2024-05-30 13:15:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:15:26] local.DEBUG: Values for Sql:Array ( [0] => 91 [1] => 90 [2] => 89 [3] => 88 [4] => 87 [5] => 1 [6] => 2 ) [2024-05-30 13:15:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 13:15:41] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 13:15:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-30 13:15:41] local.DEBUG: Values for Sql:Array ( [0] => 119 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 13:15:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:15:41] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 13:15:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:15:47] local.DEBUG: Values for Sql:Array ( [0] => 119 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 13:15:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:15:47] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 13:15:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 13:15:47] local.DEBUG: Values for Sql:Array ( [0] => 119 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 13:15:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:15:47] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 13:18:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:18:25] local.DEBUG: Values for Sql:Array ( [0] => 119 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 13:18:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:18:25] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 13:18:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-30 13:18:25] local.DEBUG: Values for Sql:Array ( [0] => 119 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 3 ) [2024-05-30 13:18:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:18:25] local.DEBUG: Values for Sql:Array ( [0] => 173 [1] => 115 ) [2024-05-30 13:18:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 13:18:46] local.DEBUG: Values for Sql:Array ( [0] => 119 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 13:18:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:18:46] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 13:18:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 13:18:46] local.DEBUG: Values for Sql:Array ( [0] => 119 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 13:18:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 13:18:46] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 13:19:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 13:19:05] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 13:19:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 13:19:05] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 13:19:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 13:19:24] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 13:19:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 13:19:24] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => 11 ) [2024-05-30 13:19:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-05-30 13:19:45] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 13:19:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-05-30 13:19:45] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 15:08:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:08:24] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 15:08:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:08:24] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 15:08:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:08:24] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 15:08:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:08:24] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 15:08:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:08:24] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 15:08:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:08:24] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 15:08:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 15:08:51] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 ) [2024-05-30 15:08:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 15:08:51] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 [7] => 1 ) [2024-05-30 15:08:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 15:08:51] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 ) [2024-05-30 15:09:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 15:09:00] local.DEBUG: Values for Sql:Array ( [0] => 279 ) [2024-05-30 15:09:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:09:21] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 15:09:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:09:21] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 15:09:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:09:21] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 15:09:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:09:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 15:09:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:09:21] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 15:09:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:09:21] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 15:09:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-30 15:09:30] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 256 ) [2024-05-30 15:09:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 15:09:30] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 15:10:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:10:07] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 15:10:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:10:07] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 15:10:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:10:07] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 15:10:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:10:07] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 15:10:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:10:07] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 15:10:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:10:07] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 15:24:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 15:24:55] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 ) [2024-05-30 15:24:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 15:24:55] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 ) [2024-05-30 15:24:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 15:24:55] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 15:25:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:25:01] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 15:25:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:25:02] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 15:25:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:25:02] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 15:25:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:25:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 15:25:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:25:03] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 15:25:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:25:03] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 15:49:43] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"theespamssemail@gmail.com","name":"C"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello C,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">83591<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-30 15:49:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3c01b110-1e9c-11ef-8942-5254000b1a0e.18fca315ea1","object":"email"} [2024-05-30 15:50:02] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 388 [2024-05-30 15:50:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 15:50:21] local.DEBUG: Values for Sql:Array ( [0] => 388 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 15:50:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-30 15:50:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 15:50:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:50:21] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 15:50:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 15:50:31] local.DEBUG: Values for Sql:Array ( [0] => 388 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 15:50:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-30 15:50:31] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 15:50:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:50:31] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 15:50:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 15:50:31] local.DEBUG: Values for Sql:Array ( [0] => 388 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 15:50:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-30 15:50:31] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 15:50:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:50:31] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 15:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 15:50:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-30 15:50:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:50:35] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 15:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-30 15:50:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 15:50:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 15:50:35] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-30 16:17:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 16:17:34] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 16:17:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-30 16:17:34] local.DEBUG: Values for Sql:Array ( [0] => 119 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 16:17:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 16:17:34] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 16:17:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 16:17:34] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 16:17:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-30 16:17:34] local.DEBUG: Values for Sql:Array ( [0] => 119 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-30 16:17:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 16:17:34] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 17:27:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 17:27:08] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 ) [2024-05-30 17:27:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 17:27:08] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 ) [2024-05-30 17:27:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 17:27:08] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 17:27:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 17:27:20] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 17:27:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 17:27:20] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 17:27:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 17:27:20] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 17:27:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 17:27:20] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 17:27:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 17:27:20] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 17:27:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 17:27:20] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 17:27:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-30 17:27:53] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 256 ) [2024-05-30 17:27:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 17:27:53] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 17:32:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 17:32:31] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-30 17:32:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 17:32:31] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-30 17:32:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 17:32:31] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 17:32:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 17:32:58] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => -1 ) [2024-05-30 17:32:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 17:32:58] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 17:32:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 17:32:58] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 1 [9] => 286 [10] => -1 ) [2024-05-30 17:32:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 17:32:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 17:32:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 17:32:58] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 [8] => 286 [9] => -1 ) [2024-05-30 17:32:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 17:32:58] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 17:33:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 17:33:45] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-30 17:33:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 17:33:45] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 [7] => 1 ) [2024-05-30 17:33:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 17:33:45] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-30 17:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 17:34:12] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-30 17:34:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 17:34:12] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-30 17:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 17:34:12] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 19:11:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 19:11:22] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 ) [2024-05-30 19:11:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 19:11:22] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 ) [2024-05-30 19:11:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 19:11:22] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 19:11:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 19:11:30] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 19:11:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 19:11:30] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 19:11:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 19:11:30] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 19:11:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 19:11:30] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 19:11:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 19:11:30] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 19:11:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 19:11:30] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 19:11:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-30 19:11:57] local.DEBUG: Values for Sql:Array ( [0] => 125 ) [2024-05-30 19:11:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 19:11:58] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 19:11:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 19:11:58] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 19:11:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 19:11:58] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 19:11:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 19:11:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 19:11:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 19:11:58] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 19:11:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 19:11:58] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 19:13:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-30 19:13:02] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 256 ) [2024-05-30 19:13:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 19:13:02] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 19:35:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 19:35:32] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-30 19:35:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 19:35:32] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-30 19:35:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 19:35:32] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-30 19:35:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 19:35:32] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 19:35:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 19:35:32] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-30 19:35:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 19:35:32] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 19:35:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 19:35:55] local.DEBUG: Values for Sql:Array ( [0] => 317 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-05-30 19:35:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 19:35:55] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 380 ) [2024-05-30 19:35:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 19:35:55] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 19:37:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 19:37:36] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 19:37:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 19:37:36] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 19:37:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 19:37:36] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 19:37:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 19:37:36] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 19:37:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 19:37:36] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 19:37:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 19:37:36] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 19:37:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-30 19:37:44] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 256 ) [2024-05-30 19:37:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 19:37:44] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 20:01:35] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ucanwinbig@yahoo.com","name":"CHERYL Michelle Fuller"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello CHERYL Michelle Fuller,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">85549<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-30 20:01:36] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6b817dd0-1ebf-11ef-9e6a-5254008f5018.18fcb17f62d","object":"email"} [2024-05-30 20:02:22] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 389 [2024-05-30 20:02:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 20:02:41] local.DEBUG: Values for Sql:Array ( [0] => 324 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 389 ) [2024-05-30 20:02:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 20:02:41] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 ) [2024-05-30 20:02:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 20:02:41] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 20:03:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 20:03:36] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => -1 ) [2024-05-30 20:03:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 20:03:36] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 20:03:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 20:03:36] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => 1 [9] => 389 [10] => -1 ) [2024-05-30 20:03:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 20:03:36] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 20:03:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 20:03:36] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => 389 [9] => -1 ) [2024-05-30 20:03:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 20:03:36] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 20:03:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-02' and `tasks`.`due_by` > '2024-05-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 20:03:42] local.DEBUG: Values for Sql:Array ( [0] => 324 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 389 ) [2024-05-30 20:03:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 20:03:42] local.DEBUG: Values for Sql:Array ( [0] => 324 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 389 [7] => 1 ) [2024-05-30 20:03:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-30 20:03:42] local.DEBUG: Values for Sql:Array ( [0] => 324 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 389 ) [2024-05-30 20:34:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 20:34:06] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 20:34:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 20:34:06] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 20:34:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 20:34:06] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 20:34:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 20:34:06] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 20:34:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 20:34:06] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 20:34:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 20:34:06] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 20:34:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-30 20:34:31] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 256 ) [2024-05-30 20:34:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 20:34:31] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 20:36:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 20:36:05] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 390 ) [2024-05-30 20:36:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 20:36:05] local.DEBUG: Values for Sql:Array ( [0] => 323 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 390 ) [2024-05-30 20:36:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 20:36:05] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 20:38:02] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"durdenlashonda@gmail.com","name":"durdenlashonda@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello durdenlashonda@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"The Infusion Inc\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: The Infusion Inc<\\/li>\\n <li>Invited By: LaShonda Durden<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-30 20:38:02] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.82ba85a0-1ec4-11ef-a2f0-525400d4bb1c.18fcb3952fa","object":"email"} [2024-05-30 20:52:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 20:52:24] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 20:52:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 20:52:24] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 20:52:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 20:52:24] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 20:52:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 20:52:24] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 20:52:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 20:52:24] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 20:52:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 20:52:24] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 20:52:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-30 20:52:44] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 256 ) [2024-05-30 20:52:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 20:52:44] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 21:09:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 21:09:00] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 ) [2024-05-30 21:09:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 21:09:00] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 ) [2024-05-30 21:09:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 21:09:00] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 21:09:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 21:09:04] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 21:09:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 21:09:04] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 21:09:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 21:09:04] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 21:09:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 21:09:04] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 21:09:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 21:09:04] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 21:09:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 21:09:04] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 21:09:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-30 21:09:33] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 256 ) [2024-05-30 21:09:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 21:09:33] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 21:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 21:33:20] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-30 21:33:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 21:33:20] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 21:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 21:33:20] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-30 21:33:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 21:33:20] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-30 21:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-30 21:33:20] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-30 21:33:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-30 21:33:20] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-30 21:34:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-30 21:34:41] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 256 ) [2024-05-30 21:34:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 21:34:41] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 23:06:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 23:06:47] local.DEBUG: Values for Sql:Array ( [0] => 293 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 355 ) [2024-05-30 23:06:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 23:06:47] local.DEBUG: Values for Sql:Array ( [0] => 291 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 355 ) [2024-05-30 23:06:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 23:06:47] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 23:16:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 23:16:37] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-30 23:16:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 23:16:37] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-30 23:16:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 23:16:37] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 23:23:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 23:23:27] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-30 23:23:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 23:23:27] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-30 23:23:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 23:23:27] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 23:27:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 23:27:31] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-30 23:27:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 23:27:31] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-30 23:27:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 23:27:31] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 23:28:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 23:28:06] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-30 23:28:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 23:28:06] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-30 23:28:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 23:28:06] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 23:31:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 23:31:18] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-30 23:31:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 23:31:18] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-30 23:31:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 23:31:18] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 23:36:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 23:36:11] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-30 23:36:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 23:36:11] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-30 23:36:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 23:36:11] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 23:36:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 23:36:33] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-30 23:36:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 23:36:33] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-30 23:36:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 23:36:33] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-30 23:46:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-30 23:46:28] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 379 ) [2024-05-30 23:46:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-30 23:46:28] local.DEBUG: Values for Sql:Array ( [0] => 314 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 379 ) [2024-05-30 23:46:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-30 23:46:28] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 00:22:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 00:22:31] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 375 ) [2024-05-31 00:22:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 00:22:31] local.DEBUG: Values for Sql:Array ( [0] => 310 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 375 ) [2024-05-31 00:22:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 00:22:31] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 01:34:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 01:34:29] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-31 01:34:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 01:34:29] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 01:34:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 01:34:29] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-31 01:34:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 01:34:29] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 01:34:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 01:34:29] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-31 01:34:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 01:34:29] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 01:35:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-31 01:35:25] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 256 ) [2024-05-31 01:35:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 01:35:25] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 03:56:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 03:56:39] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-05-31 03:56:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 03:56:39] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-05-31 03:56:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 03:56:39] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 03:56:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 03:56:39] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-05-31 03:56:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 03:56:39] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-05-31 03:56:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 03:56:40] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 03:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:56:48] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-05-31 03:56:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:56:48] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 03:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:56:48] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-05-31 03:56:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:56:48] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 03:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:56:48] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-05-31 03:56:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:56:48] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 03:56:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-03' and `tasks`.`due_by` > '2024-05-31' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-31 03:56:50] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-05-31 03:56:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-31 03:56:50] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-05-31 03:56:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-31 03:56:50] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-05-31 03:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:56:52] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-05-31 03:56:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:56:52] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 03:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:56:52] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-05-31 03:56:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:56:52] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 03:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:56:52] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-05-31 03:56:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:56:52] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 03:56:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-31 03:56:55] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 208 ) [2024-05-31 03:56:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 03:56:55] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-05-31 03:57:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-03' and `tasks`.`due_by` > '2024-05-31' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-31 03:57:02] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-05-31 03:57:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-31 03:57:02] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-05-31 03:57:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-31 03:57:02] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-05-31 03:57:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 03:57:07] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-05-31 03:57:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 03:57:07] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-05-31 03:57:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 03:57:07] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 03:57:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:57:13] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-05-31 03:57:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:57:13] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 03:57:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:57:13] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-05-31 03:57:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:57:13] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 03:57:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:57:13] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-05-31 03:57:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:57:13] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 03:57:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-31 03:57:20] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 208 ) [2024-05-31 03:57:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 03:57:20] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-05-31 03:57:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:57:26] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-05-31 03:57:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:57:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 03:57:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:57:26] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-05-31 03:57:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:57:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 03:57:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 03:57:26] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-05-31 03:57:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 03:57:26] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 03:57:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 03:57:28] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-05-31 03:57:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 03:57:28] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-05-31 03:57:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 03:57:28] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 04:31:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 04:31:47] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => -1 ) [2024-05-31 04:31:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 04:31:47] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 04:31:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 04:31:47] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => 1 [9] => 252 [10] => -1 ) [2024-05-31 04:31:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 04:31:47] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 04:31:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 04:31:47] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => 252 [9] => -1 ) [2024-05-31 04:31:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 04:31:47] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-05-31 11:33:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"joneasebarn@gmail.com","name":"Jonease Barnwell"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jonease Barnwell,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">69809<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-31 11:33:25] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.981ff061-1f41-11ef-9e6a-5254008f5018.18fce6d124b","object":"email"} [2024-05-31 11:34:07] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 391 [2024-05-31 11:34:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 11:34:33] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-05-31 11:34:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 11:34:33] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 ) [2024-05-31 11:34:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 11:34:33] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 11:41:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 11:41:10] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-05-31 11:41:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 11:41:11] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 ) [2024-05-31 11:41:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 11:41:11] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 11:41:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-03' and `tasks`.`due_by` > '2024-05-31' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-31 11:41:17] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-05-31 11:41:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-31 11:41:17] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 [7] => 1 ) [2024-05-31 11:41:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-31 11:41:17] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-05-31 11:41:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 11:41:28] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-05-31 11:41:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 11:41:28] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 ) [2024-05-31 11:41:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 11:41:28] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 11:41:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 11:41:40] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-05-31 11:41:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 11:41:40] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 ) [2024-05-31 11:41:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 11:41:40] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 11:41:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 11:41:40] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-05-31 11:41:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 11:41:40] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 ) [2024-05-31 11:41:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 11:41:40] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 15:24:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 15:25:00] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 340 ) [2024-05-31 15:25:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 15:25:00] local.DEBUG: Values for Sql:Array ( [0] => 278 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 340 ) [2024-05-31 15:25:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 15:25:00] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 15:30:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:30:59] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-31 15:30:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:30:59] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 15:30:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:30:59] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-31 15:30:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:30:59] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 15:30:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:30:59] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-31 15:30:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:30:59] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 15:31:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 15:31:32] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 ) [2024-05-31 15:31:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 15:31:32] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 ) [2024-05-31 15:31:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 15:31:32] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 15:31:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:31:45] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-31 15:31:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:31:45] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 15:31:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:31:45] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-31 15:31:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:31:45] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 15:31:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:31:45] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-31 15:31:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:31:45] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 15:32:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-31 15:32:30] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 125 ) [2024-05-31 15:32:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 15:32:30] local.DEBUG: Values for Sql:Array ( [0] => 125 ) [2024-05-31 15:32:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:32:32] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-31 15:32:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:32:32] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 15:32:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:32:32] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-31 15:32:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:32:32] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 15:32:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:32:32] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-31 15:32:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:32:32] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 15:32:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-31 15:32:34] local.DEBUG: Values for Sql:Array ( [0] => 125 ) [2024-05-31 15:32:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:32:34] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-05-31 15:32:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:32:34] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 15:32:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:32:34] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-05-31 15:32:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:32:34] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 15:32:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 15:32:34] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-05-31 15:32:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 15:32:34] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 ) [2024-05-31 15:33:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-31 15:33:21] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 256 ) [2024-05-31 15:33:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 15:33:21] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 16:50:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 16:50:27] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-31 16:50:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 16:50:27] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-31 16:50:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 16:50:27] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 16:51:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 16:51:00] local.DEBUG: Values for Sql:Array ( [0] => 230 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-05-31 16:51:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 16:51:00] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 286 ) [2024-05-31 16:51:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 16:51:00] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 18:57:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-31' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 18:57:00] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 18:57:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-31 18:57:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 18:57:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:57:00] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 18:57:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 18:57:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 18:57:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:57:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 18:57:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-31 18:57:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 18:57:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:57:53] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-31 18:58:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 18:58:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 18:58:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:58:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 18:58:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-31 18:58:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 18:58:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:58:10] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 172 [3] => 171 [4] => 109 ) [2024-05-31 18:58:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 18:58:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 18:58:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:58:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 18:58:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-31 18:58:11] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 18:58:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-05-31 18:58:30] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-05-31 18:58:30] local.DEBUG: task visible_to: [2024-05-31 18:58:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-31 18:58:41] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 171 ) [2024-05-31 18:58:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 18:58:41] local.DEBUG: Values for Sql:Array ( [0] => 171 ) [2024-05-31 18:58:41] local.DEBUG: Current Balance: 0 [2024-05-31 18:59:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 18:59:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 18:59:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:59:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 18:59:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-31 18:59:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 18:59:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:59:04] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-31 18:59:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 18:59:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 18:59:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:59:05] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 18:59:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-31 18:59:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 18:59:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:59:05] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 ) [2024-05-31 18:59:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 18:59:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 18:59:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:59:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 18:59:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-31 18:59:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 18:59:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:59:10] local.DEBUG: Values for Sql:Array ( [0] => 122 [1] => 121 [2] => 120 [3] => 119 [4] => 118 [5] => 117 [6] => 116 [7] => 115 [8] => 109 [9] => 107 ) [2024-05-31 18:59:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 18:59:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 18:59:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:59:15] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 18:59:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-31 18:59:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 18:59:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:59:15] local.DEBUG: Values for Sql:Array ( [0] => 106 [1] => 105 [2] => 104 [3] => 102 [4] => 101 [5] => 99 [6] => 98 [7] => 97 [8] => 95 [9] => 94 ) [2024-05-31 18:59:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 18:59:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 18:59:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:59:29] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 18:59:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-31 18:59:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 18:59:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:59:29] local.DEBUG: Values for Sql:Array ( [0] => 91 [1] => 90 [2] => 89 [3] => 88 [4] => 87 [5] => 2 ) [2024-05-31 18:59:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-05-31 18:59:36] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 95 ) [2024-05-31 18:59:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 18:59:36] local.DEBUG: Values for Sql:Array ( [0] => 95 ) [2024-05-31 18:59:36] local.DEBUG: Current Balance: 0 [2024-05-31 18:59:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 18:59:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 18:59:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 18:59:54] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 18:59:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-31 18:59:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 19:00:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 19:00:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 19:00:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:00:14] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 19:00:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-31 19:00:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 19:00:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:00:14] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-31 19:00:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 19:00:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 19:00:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:00:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 19:00:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-31 19:00:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 5 ) [2024-05-31 19:00:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:00:18] local.DEBUG: Values for Sql:Array ( [0] => 91 [1] => 90 [2] => 89 [3] => 88 [4] => 87 ) [2024-05-31 19:00:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 19:00:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 19:00:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:00:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 19:00:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-31 19:00:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 5 ) [2024-05-31 19:00:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 19:00:44] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 19:00:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:00:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 19:00:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-31 19:00:44] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 19:00:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:00:44] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-31 19:01:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 19:01:11] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 19:01:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:01:11] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 19:01:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-05-31 19:01:11] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 19:01:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:01:11] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => 208 [2] => 173 [3] => 172 [4] => 171 [5] => 128 [6] => 126 [7] => 125 [8] => 124 [9] => 123 [10] => 122 [11] => 121 [12] => 120 [13] => 119 [14] => 118 [15] => 117 [16] => 116 [17] => 115 [18] => 109 [19] => 107 ) [2024-05-31 19:01:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 19:01:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 19:01:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:01:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 19:01:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-31 19:01:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 3 ) [2024-05-31 19:01:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:01:21] local.DEBUG: Values for Sql:Array ( [0] => 173 [1] => 115 ) [2024-05-31 19:01:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-31 19:01:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-05-31 19:01:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:01:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-05-31 19:01:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-05-31 19:01:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 3 ) [2024-05-31 19:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-05-31' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 19:01:26] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 19:01:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-05-31 19:01:26] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-05-31 19:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-31 19:01:26] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 21:26:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 21:26:27] local.DEBUG: Values for Sql:Array ( [0] => 311 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 374 ) [2024-05-31 21:26:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-05-31 21:26:27] local.DEBUG: Values for Sql:Array ( [0] => 311 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 374 ) [2024-05-31 21:26:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 21:26:27] local.DEBUG: Values for Sql:Array ( [0] => 309 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 374 ) [2024-05-31 21:26:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-05-31 21:26:27] local.DEBUG: Values for Sql:Array ( [0] => 309 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 374 ) [2024-05-31 21:26:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 21:26:27] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-05-31 21:26:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-05-31 21:26:27] local.DEBUG: Values for Sql:Array ( [0] => 256 ) [2024-06-01 00:44:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 00:44:48] local.DEBUG: Values for Sql:Array ( [0] => 287 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 348 ) [2024-06-01 00:44:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 00:44:48] local.DEBUG: Values for Sql:Array ( [0] => 285 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 348 ) [2024-06-01 00:44:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 00:44:48] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 00:45:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 00:45:06] local.DEBUG: Values for Sql:Array ( [0] => 287 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 348 ) [2024-06-01 00:45:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 00:45:06] local.DEBUG: Values for Sql:Array ( [0] => 285 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 348 ) [2024-06-01 00:45:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 00:45:06] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 01:12:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 01:12:55] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:12:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 01:12:55] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-01 01:12:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 01:12:55] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 01:12:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 01:12:57] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:12:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 01:12:57] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-01 01:12:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 01:12:57] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 01:12:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 01:12:59] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:12:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 01:12:59] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-01 01:12:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 01:12:59] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 01:13:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:13:17] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:13:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:13:17] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-06-01 01:13:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:13:17] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:13:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:13:18] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-01 01:13:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:13:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 01:13:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:13:18] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-01 01:13:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:13:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 01:13:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:13:18] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-01 01:13:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:13:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 01:13:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:13:53] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-01 01:13:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:13:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 01:13:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:13:53] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-01 01:13:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:13:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 01:13:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:13:53] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-01 01:13:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:13:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 01:14:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-01 01:14:02] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 172 ) [2024-06-01 01:14:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 01:14:02] local.DEBUG: Values for Sql:Array ( [0] => 172 ) [2024-06-01 01:14:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:14:13] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:14:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:14:13] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-06-01 01:14:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:14:13] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:14:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:14:20] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:14:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:14:20] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-06-01 01:14:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:14:20] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:14:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 01:14:21] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:14:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 01:14:21] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-01 01:14:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 01:14:21] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 01:15:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:15:03] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-01 01:15:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:15:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 01:15:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:15:03] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-01 01:15:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:15:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 01:15:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:15:03] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-01 01:15:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:15:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 01:15:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:15:29] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:15:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:15:29] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-06-01 01:15:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:15:29] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:15:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:15:39] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-06-01 01:16:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 01:16:10] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:16:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 01:16:10] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-01 01:16:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 01:16:10] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 01:16:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 01:16:10] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:16:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 01:16:10] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-01 01:16:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 01:16:10] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 01:16:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:16:11] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:16:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:16:11] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-06-01 01:16:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:16:11] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:16:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:16:23] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-01 01:16:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:16:23] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 01:16:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:16:23] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-01 01:16:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:16:23] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 01:16:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 01:16:23] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-01 01:16:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 01:16:23] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 01:16:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:16:28] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:16:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:16:28] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-06-01 01:16:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:16:28] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:16:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:16:31] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 3 ) [2024-06-01 01:16:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:16:33] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 01:16:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:16:33] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-06-01 01:16:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 01:16:33] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 02:14:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 02:14:46] local.DEBUG: Values for Sql:Array ( [0] => 323 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 387 ) [2024-06-01 02:14:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 02:14:46] local.DEBUG: Values for Sql:Array ( [0] => 321 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 387 ) [2024-06-01 02:14:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 02:14:46] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 05:07:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 05:07:22] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 05:07:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 05:07:22] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-01 05:07:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 05:07:22] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 05:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 05:07:30] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 05:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 05:07:30] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-06-01 05:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 05:07:30] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 05:07:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:07:34] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-01 05:07:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:07:34] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 05:07:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:07:34] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-01 05:07:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:07:34] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 05:07:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:07:34] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-01 05:07:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:07:34] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 05:07:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-01 05:07:38] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 171 ) [2024-06-01 05:07:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 05:07:38] local.DEBUG: Values for Sql:Array ( [0] => 171 ) [2024-06-01 05:07:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 05:07:58] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 05:07:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 05:07:58] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-01 05:07:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 05:07:58] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 05:08:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:08:16] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-01 05:08:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:08:16] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 05:08:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:08:16] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-01 05:08:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:08:16] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 05:08:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:08:16] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-01 05:08:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:08:17] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 05:08:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-01 05:08:19] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 171 ) [2024-06-01 05:08:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 05:08:19] local.DEBUG: Values for Sql:Array ( [0] => 171 ) [2024-06-01 05:08:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 05:08:34] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 05:08:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 05:08:34] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 [7] => 1 ) [2024-06-01 05:08:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 05:08:34] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 05:08:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:08:43] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-01 05:08:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:08:43] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 05:08:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:08:43] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-01 05:08:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:08:43] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 05:08:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:08:43] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-01 05:08:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:08:43] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 05:08:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-01 05:08:51] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 171 ) [2024-06-01 05:08:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 05:08:51] local.DEBUG: Values for Sql:Array ( [0] => 171 ) [2024-06-01 05:09:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:09:12] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-01 05:09:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:09:12] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 05:09:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:09:12] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-01 05:09:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:09:12] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 05:09:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:09:12] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-01 05:09:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:09:12] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 05:09:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 05:09:14] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-01 05:09:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 05:09:14] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-01 05:09:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 05:09:14] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 05:09:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:09:18] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-01 05:09:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:09:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 05:09:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:09:18] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-01 05:09:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:09:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 05:09:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:09:18] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-01 05:09:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:09:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 05:09:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 05:09:31] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 ) [2024-06-01 05:09:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:09:31] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 05:09:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-01 05:09:31] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-01 05:09:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 05:09:31] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 ) [2024-06-01 05:09:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-01 05:09:38] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 171 ) [2024-06-01 05:09:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 05:09:38] local.DEBUG: Values for Sql:Array ( [0] => 171 ) [2024-06-01 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-01 07:54:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-06-01 07:54:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-01 07:54:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:54:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 ) [2024-06-01 07:54:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-06-01 07:54:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-01 07:54:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:54:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 ) [2024-06-01 07:54:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-06-01 07:54:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-01 07:54:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-06-01 07:54:21] local.DEBUG: Values for Sql:Array ( [0] => 2 [1] => 115 [2] => 208 [3] => 173 [4] => 171 ) [2024-06-01 07:54:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-01 07:54:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-01 07:54:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:54:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 07:54:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-01 07:54:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 94 ) [2024-06-01 07:54:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 07:54:53] local.DEBUG: Values for Sql:Array ( [0] => 94 ) [2024-06-01 07:54:53] local.DEBUG: Current Balance: 0 [2024-06-01 07:55:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 07:55:11] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-01 07:55:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:55:11] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 07:55:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-01 07:55:11] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-01 07:55:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:55:11] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 [12] => 119 [13] => 118 [14] => 117 [15] => 116 [16] => 115 [17] => 109 [18] => 107 [19] => 106 ) [2024-06-01 07:55:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 07:55:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-01 07:55:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:55:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 07:55:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-01 07:55:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 5 ) [2024-06-01 07:55:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:55:18] local.DEBUG: Values for Sql:Array ( [0] => 91 [1] => 90 [2] => 89 [3] => 88 [4] => 87 ) [2024-06-01 07:55:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-01 07:55:22] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 91 ) [2024-06-01 07:55:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 07:55:22] local.DEBUG: Values for Sql:Array ( [0] => 91 ) [2024-06-01 07:55:22] local.DEBUG: Current Balance: 0 [2024-06-01 07:55:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-01 07:55:41] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 89 ) [2024-06-01 07:55:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 07:55:41] local.DEBUG: Values for Sql:Array ( [0] => 89 ) [2024-06-01 07:55:41] local.DEBUG: Current Balance: 0 [2024-06-01 07:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 07:55:51] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-01 07:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:55:51] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 07:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-01 07:55:51] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-01 07:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:55:51] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 [12] => 119 [13] => 118 [14] => 117 [15] => 116 [16] => 115 [17] => 109 [18] => 107 [19] => 106 ) [2024-06-01 07:55:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 07:55:57] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-01 07:55:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:55:57] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 07:55:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-01 07:55:57] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-01 07:55:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:55:57] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 [12] => 119 [13] => 118 [14] => 117 [15] => 116 [16] => 115 [17] => 109 [18] => 107 [19] => 106 ) [2024-06-01 07:57:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-06-01 07:57:26] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-01 07:57:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:57:27] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 ) [2024-06-01 07:57:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-06-01 07:57:27] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-01 07:57:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:57:27] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 ) [2024-06-01 07:57:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-06-01 07:57:27] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-01 07:57:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-06-01 07:57:27] local.DEBUG: Values for Sql:Array ( [0] => 2 [1] => 115 [2] => 208 [3] => 173 [4] => 171 ) [2024-06-01 07:57:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-01 07:57:27] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-01 07:57:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 07:57:27] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 12:31:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 12:31:49] local.DEBUG: Values for Sql:Array ( [0] => 324 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 389 ) [2024-06-01 12:31:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 12:31:49] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 ) [2024-06-01 12:31:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 12:31:49] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 12:32:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 12:32:28] local.DEBUG: Values for Sql:Array ( [0] => 324 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 389 ) [2024-06-01 12:32:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 12:32:28] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 ) [2024-06-01 12:32:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 12:32:28] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 12:32:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 12:32:55] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => -1 ) [2024-06-01 12:32:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 12:32:55] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 12:32:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 12:32:55] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => 1 [9] => 389 [10] => -1 ) [2024-06-01 12:32:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 12:32:55] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 12:32:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 12:32:55] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => 389 [9] => -1 ) [2024-06-01 12:32:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 12:32:55] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 12:33:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 12:33:07] local.DEBUG: Values for Sql:Array ( [0] => 324 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 389 ) [2024-06-01 12:33:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 12:33:07] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 ) [2024-06-01 12:33:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 12:33:07] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 12:33:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 12:33:09] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => -1 ) [2024-06-01 12:33:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 12:33:09] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 12:33:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 12:33:09] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => 1 [9] => 389 [10] => -1 ) [2024-06-01 12:33:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 12:33:09] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 12:33:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 12:33:09] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => 389 [9] => -1 ) [2024-06-01 12:33:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 12:33:09] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 12:33:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 12:33:12] local.DEBUG: Values for Sql:Array ( [0] => 324 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 389 ) [2024-06-01 12:33:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 12:33:12] local.DEBUG: Values for Sql:Array ( [0] => 324 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 389 [7] => 1 ) [2024-06-01 12:33:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 12:33:12] local.DEBUG: Values for Sql:Array ( [0] => 324 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 389 ) [2024-06-01 17:32:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 17:32:04] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-06-01 17:32:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 17:32:05] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 ) [2024-06-01 17:32:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 17:32:05] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 17:32:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 17:32:20] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-06-01 17:32:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 17:32:20] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 ) [2024-06-01 17:32:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 17:32:20] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-01 17:32:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 17:32:22] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 [8] => -1 ) [2024-06-01 17:32:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 17:32:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 17:32:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 17:32:22] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 [8] => 1 [9] => 391 [10] => -1 ) [2024-06-01 17:32:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 17:32:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 17:32:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 17:32:22] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 [8] => 391 [9] => -1 ) [2024-06-01 17:32:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 17:32:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 17:32:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-01 17:32:34] local.DEBUG: Values for Sql:Array ( [0] => 120 ) [2024-06-01 17:32:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 17:32:34] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 [8] => -1 ) [2024-06-01 17:32:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 17:32:34] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 17:32:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 17:32:34] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 [8] => 1 [9] => 391 [10] => -1 ) [2024-06-01 17:32:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 17:32:34] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 17:32:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 17:32:34] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 [8] => 391 [9] => -1 ) [2024-06-01 17:32:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 17:32:34] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 17:32:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-01 17:32:37] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 [8] => 120 ) [2024-06-01 17:32:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 17:32:37] local.DEBUG: Values for Sql:Array ( [0] => 120 ) [2024-06-01 17:32:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-01 17:32:43] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 [8] => 120 ) [2024-06-01 17:32:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 17:32:43] local.DEBUG: Values for Sql:Array ( [0] => 120 ) [2024-06-01 17:32:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 17:32:52] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 [8] => -1 ) [2024-06-01 17:32:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 17:32:52] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 17:32:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 17:32:52] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 [8] => 1 [9] => 391 [10] => -1 ) [2024-06-01 17:32:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 17:32:52] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-01 17:32:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-01 17:32:52] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 [8] => 391 [9] => -1 ) [2024-06-01 17:32:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-01 17:32:52] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-01 17:32:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 17:32:54] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-06-01 17:32:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 17:32:54] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 [7] => 1 ) [2024-06-01 17:32:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 17:32:54] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-06-01 17:33:42] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"madybarn@gmail.com","name":"madybarn@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello madybarn@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Jonease Barnwell<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-01 17:33:43] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.17778f20-203d-11ef-9106-525400f92481.18fd4dd4912","object":"email"} [2024-06-01 17:34:02] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"karter.alexander17@gmail.com","name":"karter.alexander17@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello karter.alexander17@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Jonease Barnwell<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-01 17:34:03] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2358a2c0-203d-11ef-a602-5254008f5018.18fd4dd96ec","object":"email"} [2024-06-01 23:40:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 23:40:36] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-01 23:40:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 23:40:36] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-01 23:40:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 23:40:36] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-01 23:41:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-04' and `tasks`.`due_by` > '2024-06-01' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 23:41:02] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-01 23:41:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 23:41:03] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 [7] => 1 ) [2024-06-01 23:41:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 23:41:03] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-01 23:41:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 23:41:14] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-06-01 23:41:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-01 23:41:17] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-06-01 23:41:20] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Daily attendance<\\/li>\\n <li><strong>Assigned By:<\\/strong> Francisco Fegurgur<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-01 23:41:20] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.72c95d80-2070-11ef-a0bf-525400fa05f6.18fd62ddb58","object":"email"} [2024-06-01 23:41:20] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 275 [2024-06-01 23:41:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-01 23:41:42] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-01 23:41:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-05-31' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-01 23:41:42] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-01 23:41:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-01 23:41:42] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-02 01:06:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 01:06:05] local.DEBUG: Values for Sql:Array ( [0] => 217 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 271 ) [2024-06-02 01:06:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 01:06:05] local.DEBUG: Values for Sql:Array ( [0] => 215 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 271 ) [2024-06-02 01:06:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 01:06:05] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-02 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-02 07:46:28] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"lealyncabeza@gmail.com","name":"Lealyn Cabeza"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Lealyn Cabeza,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">21976<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-02 07:46:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.38c93fd0-20b4-11ef-a2f0-525400d4bb1c.18fd7ea044d","object":"email"} [2024-06-02 07:46:59] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 392 [2024-06-02 07:47:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 07:47:20] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 07:47:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 07:47:20] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 ) [2024-06-02 07:47:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 07:47:20] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-02 07:47:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-05' and `tasks`.`due_by` > '2024-06-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:47:43] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 07:47:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:47:43] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 [7] => 1 ) [2024-06-02 07:47:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:47:43] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 07:47:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:47:56] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-02 07:48:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:48:08] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-02 07:48:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-05' and `tasks`.`due_by` > '2024-06-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:48:12] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 07:48:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:48:12] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 [7] => 1 ) [2024-06-02 07:48:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:48:12] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 07:48:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:48:20] local.DEBUG: Values for Sql:Array ( [0] => 303 ) [2024-06-02 07:48:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:48:29] local.DEBUG: Values for Sql:Array ( [0] => 303 ) [2024-06-02 07:48:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:48:55] local.DEBUG: Values for Sql:Array ( [0] => 303 ) [2024-06-02 07:48:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:48:57] local.DEBUG: Values for Sql:Array ( [0] => 303 ) [2024-06-02 07:49:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-05' and `tasks`.`due_by` > '2024-06-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:49:06] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 07:49:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:49:06] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 [7] => 1 ) [2024-06-02 07:49:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:49:06] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 07:49:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 07:49:32] local.DEBUG: Values for Sql:Array ( [0] => 1 ) [2024-06-02 07:49:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-06-02 07:49:32] local.DEBUG: Values for Sql:Array ( [0] => 0 ) [2024-06-02 08:51:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 08:51:43] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 08:51:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 08:51:43] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 ) [2024-06-02 08:51:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 08:51:43] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-02 08:51:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 08:51:53] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 [8] => -1 ) [2024-06-02 08:51:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 08:51:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 08:51:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 08:51:53] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 [8] => 1 [9] => 392 [10] => -1 ) [2024-06-02 08:51:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 08:51:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-02 08:51:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 08:51:53] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 [8] => 392 [9] => -1 ) [2024-06-02 08:51:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 08:51:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 08:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 08:52:16] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 [8] => -1 ) [2024-06-02 08:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 08:52:16] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 08:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 08:52:16] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 [8] => 1 [9] => 392 [10] => -1 ) [2024-06-02 08:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 08:52:16] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-02 08:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 08:52:16] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 [8] => 392 [9] => -1 ) [2024-06-02 08:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 08:52:16] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 08:52:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 08:52:22] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 08:52:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 08:52:22] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 ) [2024-06-02 08:52:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 08:52:22] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-02 08:53:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 08:53:00] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 08:53:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 08:53:00] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 ) [2024-06-02 08:53:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 08:53:00] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-02 08:53:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-05' and `tasks`.`due_by` > '2024-06-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:02] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 08:53:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:02] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 [7] => 1 ) [2024-06-02 08:53:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:02] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 08:53:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:10] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-02 08:53:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:16] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-02 08:53:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:30] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-02 08:53:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:32] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-02 08:53:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-02 08:53:38] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 [8] => 201 ) [2024-06-02 08:53:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 08:53:38] local.DEBUG: Values for Sql:Array ( [0] => 201 ) [2024-06-02 08:53:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:45] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-02 08:53:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-05' and `tasks`.`due_by` > '2024-06-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:46] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 08:53:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:46] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 [7] => 1 ) [2024-06-02 08:53:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:46] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-02 08:53:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 08:53:49] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-02 15:00:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 15:00:54] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-02 15:00:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 15:00:54] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-02 15:00:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 15:00:54] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-02 15:00:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 15:00:54] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-02 15:00:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 15:00:54] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-02 15:00:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 15:00:54] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-02 15:00:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 15:00:58] local.DEBUG: Values for Sql:Array ( [0] => 103 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 162 ) [2024-06-02 15:00:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 15:00:58] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-02 15:00:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 15:00:58] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-02 16:34:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 16:34:09] local.DEBUG: Values for Sql:Array ( [0] => 251 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 308 ) [2024-06-02 16:34:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 16:34:09] local.DEBUG: Values for Sql:Array ( [0] => 249 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 308 ) [2024-06-02 16:34:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 16:34:09] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-02 16:34:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 16:34:18] local.DEBUG: Values for Sql:Array ( [0] => 249 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 308 [8] => -1 ) [2024-06-02 16:34:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 16:34:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 16:34:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 16:34:18] local.DEBUG: Values for Sql:Array ( [0] => 249 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 308 [8] => 1 [9] => 308 [10] => -1 ) [2024-06-02 16:34:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 16:34:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-02 16:34:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 16:34:18] local.DEBUG: Values for Sql:Array ( [0] => 249 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 308 [8] => 308 [9] => -1 ) [2024-06-02 16:34:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 16:34:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 16:34:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 16:34:31] local.DEBUG: Values for Sql:Array ( [0] => 251 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 308 ) [2024-06-02 16:34:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 16:34:31] local.DEBUG: Values for Sql:Array ( [0] => 249 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 308 ) [2024-06-02 16:34:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 16:34:31] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-02 16:34:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 16:34:46] local.DEBUG: Values for Sql:Array ( [0] => 249 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 308 [8] => -1 ) [2024-06-02 16:34:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 16:34:46] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 16:34:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 16:34:46] local.DEBUG: Values for Sql:Array ( [0] => 249 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 308 [8] => 1 [9] => 308 [10] => -1 ) [2024-06-02 16:34:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 16:34:46] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-02 16:34:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 16:34:46] local.DEBUG: Values for Sql:Array ( [0] => 249 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 308 [8] => 308 [9] => -1 ) [2024-06-02 16:34:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 16:34:46] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 16:34:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-05' and `tasks`.`due_by` > '2024-06-02' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 16:34:50] local.DEBUG: Values for Sql:Array ( [0] => 251 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 308 ) [2024-06-02 16:34:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 16:34:50] local.DEBUG: Values for Sql:Array ( [0] => 251 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 308 [7] => 1 ) [2024-06-02 16:34:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-02 16:34:50] local.DEBUG: Values for Sql:Array ( [0] => 251 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 308 ) [2024-06-02 23:19:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 23:19:59] local.DEBUG: Values for Sql:Array ( [0] => 125 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 180 [8] => -1 ) [2024-06-02 23:19:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 23:19:59] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 23:19:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 23:19:59] local.DEBUG: Values for Sql:Array ( [0] => 125 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 180 [8] => 1 [9] => 180 [10] => -1 ) [2024-06-02 23:19:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 23:19:59] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-02 23:19:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 23:19:59] local.DEBUG: Values for Sql:Array ( [0] => 125 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 180 [8] => 180 [9] => -1 ) [2024-06-02 23:19:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 23:19:59] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 23:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 23:20:13] local.DEBUG: Values for Sql:Array ( [0] => 127 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 180 ) [2024-06-02 23:20:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 23:20:13] local.DEBUG: Values for Sql:Array ( [0] => 125 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 180 ) [2024-06-02 23:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 23:20:13] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-02 23:20:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 23:20:51] local.DEBUG: Values for Sql:Array ( [0] => 125 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 180 [8] => -1 ) [2024-06-02 23:20:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 23:20:51] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 23:20:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 23:20:51] local.DEBUG: Values for Sql:Array ( [0] => 125 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 180 [8] => 1 [9] => 180 [10] => -1 ) [2024-06-02 23:20:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 23:20:51] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-02 23:20:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-02 23:20:51] local.DEBUG: Values for Sql:Array ( [0] => 125 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 180 [8] => 180 [9] => -1 ) [2024-06-02 23:20:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-02 23:20:51] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-02 23:57:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-02 23:57:15] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 258 ) [2024-06-02 23:57:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-02 23:57:15] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 ) [2024-06-02 23:57:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-02 23:57:15] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 01:31:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-03 01:31:20] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => -1 ) [2024-06-03 01:31:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-03 01:31:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-03 01:31:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-03 01:31:21] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => 1 [9] => 252 [10] => -1 ) [2024-06-03 01:31:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-03 01:31:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-03 01:31:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-03 01:31:21] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => 252 [9] => -1 ) [2024-06-03 01:31:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-03 01:31:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-03 01:33:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-03 01:33:49] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => -1 ) [2024-06-03 01:33:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-03 01:33:49] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-03 01:33:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-03 01:33:49] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => 1 [9] => 252 [10] => -1 ) [2024-06-03 01:33:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-03 01:33:49] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-03 01:33:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-03 01:33:49] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => 252 [9] => -1 ) [2024-06-03 01:33:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-03 01:33:49] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-03 04:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-03 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-06-03 04:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-03 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-06-03 04:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 05:18:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-03 05:18:01] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 ) [2024-06-03 05:18:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-03 05:18:01] local.DEBUG: Values for Sql:Array ( [0] => 162 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 216 ) [2024-06-03 05:18:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 05:18:01] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 06:17:57] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Webs_ette8@gmail.com","name":"Webs_ette8@gmail.com"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Webs_ette8@gmail.com,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">14762<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-03 06:17:58] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.05850741-2171-11ef-8630-525400d6cd4f.18fdcbf55b4","object":"email"} [2024-06-03 06:18:54] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Webs_ette8@gmail.com","name":"Webs_ette8@gmail.com"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>33901<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-03 06:18:54] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.27588b30-2171-11ef-a2f0-525400d4bb1c.18fdcc03363","object":"email"} [2024-06-03 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-03 13:06:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-03 13:06:15] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-03 13:06:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-03 13:06:15] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 ) [2024-06-03 13:06:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 13:06:15] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 13:06:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-03 13:06:18] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-03 13:06:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-03 13:06:18] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 ) [2024-06-03 13:06:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 13:06:18] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 13:06:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-06' and `tasks`.`due_by` > '2024-06-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:06:46] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-03 13:06:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:06:46] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 [7] => 1 ) [2024-06-03 13:06:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:06:46] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-03 13:06:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:06:53] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-03 13:07:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-03 13:07:22] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-03 13:07:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-03 13:07:22] local.DEBUG: Values for Sql:Array ( [0] => 326 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 392 ) [2024-06-03 13:07:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 13:07:22] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 13:07:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-06' and `tasks`.`due_by` > '2024-06-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:07:44] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-03 13:07:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:07:44] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 [7] => 1 ) [2024-06-03 13:07:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:07:44] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-03 13:07:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-06' and `tasks`.`due_by` > '2024-06-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:07:49] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-03 13:07:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:07:49] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 [7] => 1 ) [2024-06-03 13:07:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:07:49] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-03 13:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:08:04] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 [7] => 2 ) [2024-06-03 13:08:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-06' and `tasks`.`due_by` > '2024-06-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:08:07] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-03 13:08:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:08:07] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 [7] => 1 ) [2024-06-03 13:08:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:08:07] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 392 ) [2024-06-03 13:08:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:08:18] local.DEBUG: Values for Sql:Array ( [0] => 303 ) [2024-06-03 13:08:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 13:08:24] local.DEBUG: Values for Sql:Array ( [0] => 303 ) [2024-06-03 14:49:37] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"clarencelewis59@gmail.com","name":"Clarence Lewis"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Clarence Lewis,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">13989<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-03 14:49:37] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7ff3d500-21b8-11ef-9106-525400f92481.18fde93c650","object":"email"} [2024-06-03 14:50:57] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"clarencelewis59@gmail.com","name":"Clarence Lewis"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>64847<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-03 14:50:57] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.af974440-21b8-11ef-a578-5254008f5018.18fde94fe84","object":"email"} [2024-06-03 14:51:43] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 394 [2024-06-03 14:53:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-03 14:53:09] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 394 ) [2024-06-03 14:53:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-03 14:53:09] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 394 ) [2024-06-03 14:53:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 14:53:09] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 14:53:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-03 14:53:51] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 394 ) [2024-06-03 14:53:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-03 14:53:51] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 394 ) [2024-06-03 14:53:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 14:53:51] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 14:54:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-06' and `tasks`.`due_by` > '2024-06-03' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 14:54:06] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 394 ) [2024-06-03 14:54:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 14:54:06] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 394 [7] => 1 ) [2024-06-03 14:54:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-03 14:54:06] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 394 ) [2024-06-03 14:54:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-03 14:54:18] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 394 ) [2024-06-03 14:54:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-03 14:54:18] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 394 ) [2024-06-03 14:54:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 14:54:18] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 14:54:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-03 14:54:34] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 394 [8] => -1 ) [2024-06-03 14:54:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-03 14:54:35] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-03 14:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-03 14:54:35] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 394 [8] => 1 [9] => 394 [10] => -1 ) [2024-06-03 14:54:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-03 14:54:35] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-03 14:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-03 14:54:35] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 394 [8] => 394 [9] => -1 ) [2024-06-03 14:54:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-03 14:54:35] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-03 14:54:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-03 14:54:40] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 394 [8] => 208 ) [2024-06-03 14:54:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 14:54:40] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 14:54:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-03 14:54:46] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 394 [8] => 208 ) [2024-06-03 14:54:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 14:54:46] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 14:55:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-03 14:55:08] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 394 ) [2024-06-03 14:55:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-03 14:55:08] local.DEBUG: Values for Sql:Array ( [0] => 328 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 394 ) [2024-06-03 14:55:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 14:55:09] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 15:01:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-03' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-03 15:01:28] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-03 15:01:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-03 15:01:29] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-03 15:01:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-03 15:01:29] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-03 20:17:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-03 20:17:21] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 395 ) [2024-06-03 20:17:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-02' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-03 20:17:21] local.DEBUG: Values for Sql:Array ( [0] => 329 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 395 ) [2024-06-03 20:17:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-03 20:17:21] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 01:20:56] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"raumua75@gmail.com","name":"Ronald Aumua"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Ronald Aumua,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">91961<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-04 01:20:56] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b1b9f530-2210-11ef-8630-525400d6cd4f.18fe0d5c403","object":"email"} [2024-06-04 01:21:24] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 396 [2024-06-04 01:22:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 01:22:05] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 396 ) [2024-06-04 01:22:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 01:22:05] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 396 ) [2024-06-04 01:22:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 01:22:05] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 01:22:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 01:22:19] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 396 ) [2024-06-04 01:22:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 01:22:19] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 396 ) [2024-06-04 01:22:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 01:22:19] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 01:22:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 01:22:19] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 396 ) [2024-06-04 01:22:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 01:22:19] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 396 ) [2024-06-04 01:22:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 01:22:19] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 01:22:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-07' and `tasks`.`due_by` > '2024-06-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 01:22:35] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 396 ) [2024-06-04 01:22:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 01:22:35] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 396 [7] => 1 ) [2024-06-04 01:22:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 01:22:35] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 396 ) [2024-06-04 01:22:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 01:22:46] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 396 [7] => 3 ) [2024-06-04 01:22:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 01:22:46] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 396 [7] => 3 ) [2024-06-04 01:22:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 01:22:51] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-06-04 01:23:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 01:23:21] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 396 ) [2024-06-04 01:23:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 01:23:21] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 396 ) [2024-06-04 01:23:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 01:23:21] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 01:23:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 01:23:25] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 396 [8] => -1 ) [2024-06-04 01:23:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 01:23:25] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 01:23:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 01:23:25] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 396 [8] => 1 [9] => 396 [10] => -1 ) [2024-06-04 01:23:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 01:23:25] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-04 01:23:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 01:23:25] local.DEBUG: Values for Sql:Array ( [0] => 330 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 396 [8] => 396 [9] => -1 ) [2024-06-04 01:23:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 01:23:25] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 03:42:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 03:42:58] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 236 ) [2024-06-04 03:42:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 03:42:58] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 236 ) [2024-06-04 03:42:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 03:42:58] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 03:43:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-07' and `tasks`.`due_by` > '2024-06-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 03:43:01] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 236 ) [2024-06-04 03:43:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 03:43:01] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 236 [7] => 1 ) [2024-06-04 03:43:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 03:43:01] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 236 ) [2024-06-04 03:43:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 03:43:19] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 236 ) [2024-06-04 03:43:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 03:43:19] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 236 ) [2024-06-04 03:43:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 03:43:19] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 03:43:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 03:43:58] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 236 ) [2024-06-04 03:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 03:43:58] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 236 ) [2024-06-04 03:43:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 03:43:58] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 03:44:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 03:44:21] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 236 [8] => -1 ) [2024-06-04 03:44:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 03:44:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 03:44:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 03:44:21] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 236 [8] => 1 [9] => 236 [10] => -1 ) [2024-06-04 03:44:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 03:44:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-04 03:44:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 03:44:21] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 236 [8] => 236 [9] => -1 ) [2024-06-04 03:44:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 03:44:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 03:55:45] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-04 03:55:46] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-04 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-04 10:10:19] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-04 10:10:19] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 ) [2024-06-04 10:10:30] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-04 10:10:30] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 ) [2024-06-04 10:10:30] local.DEBUG: Max Storage: 1024.0 [2024-06-04 10:10:30] local.DEBUG: Total Storage: 0.0 [2024-06-04 10:12:13] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-04 10:12:13] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 ) [2024-06-04 10:12:13] local.DEBUG: Max Storage: 1024.0 [2024-06-04 10:12:13] local.DEBUG: Total Storage: 0.0 [2024-06-04 10:15:02] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-04 10:15:02] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 ) [2024-06-04 13:12:24] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-04 13:12:24] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 ) [2024-06-04 13:14:07] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-04 13:14:07] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 45f44906-a222-4957-94e3-10e711e09b50 [2] => 1 ) [2024-06-04 13:14:58] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-04 13:14:58] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 [2] => %Stepped% ) [2024-06-04 14:35:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 14:35:00] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 336 ) [2024-06-04 14:35:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 14:35:00] local.DEBUG: Values for Sql:Array ( [0] => 274 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 336 ) [2024-06-04 14:35:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 14:35:00] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 14:35:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 14:35:31] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 336 ) [2024-06-04 14:35:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 14:35:31] local.DEBUG: Values for Sql:Array ( [0] => 274 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 336 ) [2024-06-04 14:35:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 14:35:31] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 14:35:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-07' and `tasks`.`due_by` > '2024-06-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 14:35:43] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 336 ) [2024-06-04 14:35:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 14:35:43] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 336 [7] => 1 ) [2024-06-04 14:35:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-04 14:35:43] local.DEBUG: Values for Sql:Array ( [0] => 276 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 336 ) [2024-06-04 14:36:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 14:36:08] local.DEBUG: Values for Sql:Array ( [0] => 274 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 336 [8] => -1 ) [2024-06-04 14:36:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 14:36:08] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 14:36:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 14:36:08] local.DEBUG: Values for Sql:Array ( [0] => 274 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 336 [8] => 1 [9] => 336 [10] => -1 ) [2024-06-04 14:36:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 14:36:08] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-04 14:36:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 14:36:08] local.DEBUG: Values for Sql:Array ( [0] => 274 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 336 [8] => 336 [9] => -1 ) [2024-06-04 14:36:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 14:36:08] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 16:03:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:03:16] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:03:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:03:16] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:03:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-04 16:03:16] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:03:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-04 16:03:16] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:03:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:03:16] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:03:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:03:17] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:03:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:03:46] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:03:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-04 16:03:46] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:03:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:03:46] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:03:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:03:47] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 ) [2024-06-04 16:03:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 16:03:47] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 ) [2024-06-04 16:03:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 16:03:47] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:04:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:04:00] local.DEBUG: Values for Sql:Array ( [0] => 234 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-04 16:04:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 16:04:00] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-04 16:04:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 16:04:00] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:04:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:04:09] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:04:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-04 16:04:09] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:04:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:04:09] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:04:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 16:04:17] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-04 16:04:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:04:17] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 16:04:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 16:04:17] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-04 16:04:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:04:17] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-04 16:04:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 16:04:17] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-04 16:04:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:04:17] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 16:04:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:04:27] local.DEBUG: Values for Sql:Array ( [0] => 234 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-04 16:04:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 16:04:27] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-04 16:04:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 16:04:27] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:04:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:04:28] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-04 16:04:28] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:04:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:04:28] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:04:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:04:52] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:04:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-04 16:04:52] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:04:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:04:52] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:05:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 16:05:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-04 16:05:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:05:25] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 16:05:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 16:05:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-04 16:05:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:05:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-04 16:05:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 16:05:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-04 16:05:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:05:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 16:05:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:05:45] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:05:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-04 16:05:45] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:05:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:05:45] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:05:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:05:46] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:05:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-04 16:05:46] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:05:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:05:46] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:06:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:06:59] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:06:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-04 16:06:59] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:06:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:06:59] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 16:06:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 16:06:59] local.DEBUG: Values for Sql:Array ( [0] => 46 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:06:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-04 16:06:59] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-04 16:06:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 16:06:59] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 20:41:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 20:41:25] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 [8] => -1 ) [2024-06-04 20:41:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 20:41:25] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 20:41:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 20:41:25] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 [8] => 1 [9] => 197 [10] => -1 ) [2024-06-04 20:41:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 20:41:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-04 20:41:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 20:41:26] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 [8] => 197 [9] => -1 ) [2024-06-04 20:41:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 20:41:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 20:41:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 20:41:26] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 [8] => -1 ) [2024-06-04 20:41:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 20:41:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 20:41:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 20:41:26] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 [8] => 1 [9] => 197 [10] => -1 ) [2024-06-04 20:41:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 20:41:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-04 20:41:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 20:41:26] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 [8] => 197 [9] => -1 ) [2024-06-04 20:41:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 20:41:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 20:41:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 20:41:51] local.DEBUG: Values for Sql:Array ( [0] => 146 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 197 ) [2024-06-04 20:41:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 20:41:51] local.DEBUG: Values for Sql:Array ( [0] => 146 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 197 ) [2024-06-04 20:41:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 20:41:51] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 ) [2024-06-04 20:41:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 20:41:51] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 ) [2024-06-04 20:41:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 20:41:51] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 20:41:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 20:41:51] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 20:42:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 20:42:30] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 [8] => -1 ) [2024-06-04 20:42:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 20:42:30] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 20:42:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 20:42:30] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 [8] => 1 [9] => 197 [10] => -1 ) [2024-06-04 20:42:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 20:42:30] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-04 20:42:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 20:42:31] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 [8] => 197 [9] => -1 ) [2024-06-04 20:42:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 20:42:31] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-04 20:43:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-04 20:43:10] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 [8] => 1 ) [2024-06-04 20:43:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 20:43:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-04 20:43:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-04 20:43:10] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 ) [2024-06-04 20:43:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-04 20:43:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 ) [2024-06-04 20:43:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 20:43:13] local.DEBUG: Values for Sql:Array ( [0] => 146 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 197 ) [2024-06-04 20:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 20:43:13] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 ) [2024-06-04 20:43:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 20:43:13] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 20:43:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 20:43:14] local.DEBUG: Values for Sql:Array ( [0] => 146 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 197 ) [2024-06-04 20:43:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 20:43:14] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 ) [2024-06-04 20:43:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 20:43:14] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-04 22:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-04 22:50:13] local.DEBUG: Values for Sql:Array ( [0] => 146 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 197 ) [2024-06-04 22:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-04 22:50:13] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 ) [2024-06-04 22:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-04 22:50:13] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 00:22:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 00:22:47] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 395 ) [2024-06-05 00:22:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 00:22:47] local.DEBUG: Values for Sql:Array ( [0] => 329 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 395 ) [2024-06-05 00:22:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 00:22:47] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 02:03:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 02:03:38] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 375 ) [2024-06-05 02:03:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 02:03:38] local.DEBUG: Values for Sql:Array ( [0] => 310 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 375 ) [2024-06-05 02:03:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 02:03:38] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 02:04:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-08' and `tasks`.`due_by` > '2024-06-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 02:04:06] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 375 ) [2024-06-05 02:04:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 02:04:06] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 375 [7] => 1 ) [2024-06-05 02:04:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 02:04:06] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 375 ) [2024-06-05 02:04:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 02:04:29] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 375 [7] => 10 ) [2024-06-05 06:03:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 06:03:08] local.DEBUG: Values for Sql:Array ( [0] => 255 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 314 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => Lake [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Lake ) [2024-06-05 06:03:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 06:03:08] local.DEBUG: Values for Sql:Array ( [0] => 253 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 314 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => Lake [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Lake ) [2024-06-05 06:03:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 06:03:08] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 06:04:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 06:04:23] local.DEBUG: Values for Sql:Array ( [0] => 253 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 314 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => Lake [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Lake [16] => -1 ) [2024-06-05 06:04:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 06:04:24] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 06:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 06:04:24] local.DEBUG: Values for Sql:Array ( [0] => 253 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 314 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => Lake [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Lake [16] => 1 [17] => 314 [18] => -1 ) [2024-06-05 06:04:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 06:04:24] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-05 06:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 06:04:24] local.DEBUG: Values for Sql:Array ( [0] => 253 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 314 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => Lake [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Lake [16] => 314 [17] => -1 ) [2024-06-05 06:04:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 06:04:24] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 06:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-08' and `tasks`.`due_by` > '2024-06-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 06:05:35] local.DEBUG: Values for Sql:Array ( [0] => 255 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 314 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => Lake [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Lake ) [2024-06-05 06:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 06:05:35] local.DEBUG: Values for Sql:Array ( [0] => 255 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 314 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => Lake [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Lake [15] => 1 ) [2024-06-05 06:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 06:05:35] local.DEBUG: Values for Sql:Array ( [0] => 255 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 314 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => Lake [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => Lake ) [2024-06-05 06:06:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 06:06:05] local.DEBUG: Values for Sql:Array ( [0] => 278 ) [2024-06-05 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-05 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (312, 304, 220, PENDING, ?, ?, ?, 2024-06-05 07:05:02, 2024-06-05 07:05:02)) [2024-06-05 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(484): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(428): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-06-05 08:02:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 08:02:26] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 ) [2024-06-05 08:02:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 08:02:26] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 ) [2024-06-05 08:02:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 08:02:26] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 08:02:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-08' and `tasks`.`due_by` > '2024-06-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:02:37] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 ) [2024-06-05 08:02:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:02:37] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 [7] => 1 ) [2024-06-05 08:02:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:02:37] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 ) [2024-06-05 08:02:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:02:53] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-05 08:03:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:03:05] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-05 08:03:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:03:19] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-05 08:03:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:03:43] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-05 08:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:03:50] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => -1 ) [2024-06-05 08:03:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:03:50] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 08:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:03:50] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => 1 [9] => 397 [10] => -1 ) [2024-06-05 08:03:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:03:50] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-05 08:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:03:50] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => 397 [9] => -1 ) [2024-06-05 08:03:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:03:50] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 08:03:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-05 08:03:57] local.DEBUG: Values for Sql:Array ( [0] => 126 ) [2024-06-05 08:03:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:03:57] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => -1 ) [2024-06-05 08:03:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:03:57] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 08:03:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:03:57] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => 1 [9] => 397 [10] => -1 ) [2024-06-05 08:03:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:03:57] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-05 08:03:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:03:57] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => 397 [9] => -1 ) [2024-06-05 08:03:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:03:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 08:04:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:04:15] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-05 08:04:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-08' and `tasks`.`due_by` > '2024-06-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:04:43] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 ) [2024-06-05 08:04:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:04:43] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 [7] => 1 ) [2024-06-05 08:04:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:04:43] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 ) [2024-06-05 08:04:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:04:47] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => -1 ) [2024-06-05 08:04:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:04:47] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 08:04:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:04:47] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => 1 [9] => 397 [10] => -1 ) [2024-06-05 08:04:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:04:47] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-05 08:04:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:04:47] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => 397 [9] => -1 ) [2024-06-05 08:04:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:04:47] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 08:04:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 08:04:51] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 ) [2024-06-05 08:04:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 08:04:51] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 ) [2024-06-05 08:04:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 08:04:51] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 08:04:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:04:58] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => -1 ) [2024-06-05 08:04:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:04:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 08:04:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:04:58] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => 1 [9] => 397 [10] => -1 ) [2024-06-05 08:04:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:04:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-05 08:04:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 08:04:58] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 [8] => 397 [9] => -1 ) [2024-06-05 08:04:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 08:04:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 08:05:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 08:05:04] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 ) [2024-06-05 08:05:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 08:05:04] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 ) [2024-06-05 08:05:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 08:05:04] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 08:05:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-08' and `tasks`.`due_by` > '2024-06-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:05:05] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 ) [2024-06-05 08:05:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:05:05] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 [7] => 1 ) [2024-06-05 08:05:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:05:05] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 ) [2024-06-05 08:05:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:05:10] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-05 08:05:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:05:23] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-05 08:05:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:05:39] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-05 08:05:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 08:05:40] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-05 08:05:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 08:05:47] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 397 ) [2024-06-05 08:05:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 08:05:47] local.DEBUG: Values for Sql:Array ( [0] => 331 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 397 ) [2024-06-05 08:05:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 08:05:47] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 11:49:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 11:49:55] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-06-05 11:49:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 11:49:55] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 ) [2024-06-05 11:49:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 11:49:55] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 11:50:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 11:50:27] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-06-05 11:50:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 11:50:27] local.DEBUG: Values for Sql:Array ( [0] => 325 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 391 ) [2024-06-05 11:50:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 11:50:27] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 11:50:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-08' and `tasks`.`due_by` > '2024-06-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 11:50:29] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-06-05 11:50:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 11:50:29] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 [7] => 1 ) [2024-06-05 11:50:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 11:50:29] local.DEBUG: Values for Sql:Array ( [0] => 327 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 391 ) [2024-06-05 11:50:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 11:50:39] local.DEBUG: Values for Sql:Array ( [0] => 288 ) [2024-06-05 11:50:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 11:50:44] local.DEBUG: Values for Sql:Array ( [0] => 288 ) [2024-06-05 14:19:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 14:19:42] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-06-05 14:19:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 14:19:42] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 14:19:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 14:19:42] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-06-05 14:19:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 14:19:42] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-05 14:19:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 14:19:42] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-06-05 14:19:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 14:19:42] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 14:20:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-05 14:20:00] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 173 ) [2024-06-05 14:20:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 14:20:00] local.DEBUG: Values for Sql:Array ( [0] => 173 ) [2024-06-05 14:20:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-05 14:20:13] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 173 ) [2024-06-05 14:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 14:20:13] local.DEBUG: Values for Sql:Array ( [0] => 173 ) [2024-06-05 14:20:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 14:20:25] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => -1 ) [2024-06-05 14:20:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 14:20:25] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 14:20:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 14:20:25] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 1 [9] => 358 [10] => -1 ) [2024-06-05 14:20:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 14:20:25] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-05 14:20:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 14:20:25] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 [8] => 358 [9] => -1 ) [2024-06-05 14:20:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 14:20:25] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 14:21:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-08' and `tasks`.`due_by` > '2024-06-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 14:21:23] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 ) [2024-06-05 14:21:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 14:21:23] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 [7] => 1 ) [2024-06-05 14:21:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 14:21:23] local.DEBUG: Values for Sql:Array ( [0] => 296 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 358 ) [2024-06-05 14:22:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 14:22:31] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-06-05 14:22:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 14:22:35] local.DEBUG: Values for Sql:Array ( [0] => 249 ) [2024-06-05 17:36:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 17:36:07] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 258 ) [2024-06-05 17:36:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 17:36:07] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 ) [2024-06-05 17:36:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 17:36:08] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 18:17:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 18:17:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 258 ) [2024-06-05 18:17:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 18:17:10] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 ) [2024-06-05 18:17:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 18:17:10] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 18:20:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-08' and `tasks`.`due_by` > '2024-06-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 18:20:06] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 258 ) [2024-06-05 18:20:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 18:20:06] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 258 [7] => 1 ) [2024-06-05 18:20:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-05 18:20:06] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 258 ) [2024-06-05 18:20:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 18:20:17] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 [8] => -1 ) [2024-06-05 18:20:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 18:20:17] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 18:20:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 18:20:17] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 [8] => 1 [9] => 258 [10] => -1 ) [2024-06-05 18:20:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 18:20:17] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-05 18:20:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-05 18:20:17] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 [8] => 258 [9] => -1 ) [2024-06-05 18:20:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-05 18:20:17] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-05 18:20:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 18:20:21] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 258 ) [2024-06-05 18:20:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 18:20:21] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 ) [2024-06-05 18:20:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 18:20:21] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 18:36:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 18:36:16] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 258 ) [2024-06-05 18:36:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 18:36:16] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 ) [2024-06-05 18:36:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 18:36:16] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 19:14:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 19:14:38] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 258 ) [2024-06-05 19:14:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 19:14:38] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 ) [2024-06-05 19:14:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 19:14:38] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 19:17:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 19:17:54] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 258 ) [2024-06-05 19:17:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 19:17:54] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 ) [2024-06-05 19:17:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 19:17:54] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 23:10:08] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"goo.moogle8@gmail.com","name":"Jack black"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jack black,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">22751<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-05 23:10:08] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c0cdf2c0-2390-11ef-9402-52540064429e.18feaaabbec","object":"email"} [2024-06-05 23:10:23] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 398 [2024-06-05 23:10:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 23:10:58] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 398 ) [2024-06-05 23:10:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 23:10:58] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 398 ) [2024-06-05 23:10:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 23:10:58] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 23:11:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 23:11:07] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 398 ) [2024-06-05 23:11:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 23:11:07] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 398 ) [2024-06-05 23:11:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 23:11:07] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 23:11:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 23:11:36] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 398 ) [2024-06-05 23:11:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 23:11:36] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 398 ) [2024-06-05 23:11:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 23:11:36] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 23:11:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 23:11:54] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 398 ) [2024-06-05 23:11:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 23:11:54] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 398 ) [2024-06-05 23:11:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 23:11:54] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-05 23:11:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-05 23:11:55] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 398 ) [2024-06-05 23:11:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-05 23:11:55] local.DEBUG: Values for Sql:Array ( [0] => 332 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 398 ) [2024-06-05 23:11:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-05 23:11:55] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-06 00:13:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 00:13:05] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-06-06 00:13:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 00:13:05] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-06-06 00:13:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 00:13:05] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-06 04:35:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 04:35:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 04:35:45] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-06 04:35:45] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-06 04:35:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 04:35:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 ) [2024-06-06 04:35:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 04:35:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 ) [2024-06-06 04:35:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 04:35:45] local.DEBUG: Values for Sql:Array ( [0] => 209 ) [2024-06-06 04:35:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 04:35:45] local.DEBUG: Values for Sql:Array ( [0] => 209 ) [2024-06-06 04:35:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 04:35:55] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-06 04:35:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 04:35:55] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 ) [2024-06-06 04:35:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 04:35:55] local.DEBUG: Values for Sql:Array ( [0] => 209 ) [2024-06-06 04:36:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 04:36:07] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-06 04:36:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 04:36:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 ) [2024-06-06 04:36:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 04:36:07] local.DEBUG: Values for Sql:Array ( [0] => 209 ) [2024-06-06 04:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 04:36:10] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => -1 ) [2024-06-06 04:36:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 04:36:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 04:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 04:36:10] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => 1 [9] => 213 [10] => -1 ) [2024-06-06 04:36:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 04:36:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-06 04:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 04:36:10] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => 213 [9] => -1 ) [2024-06-06 04:36:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 04:36:10] local.DEBUG: Values for Sql:Array ( [0] => 209 [1] => 208 [2] => 189 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-06-06 04:36:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-06 04:36:21] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => 209 ) [2024-06-06 04:36:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 04:36:21] local.DEBUG: Values for Sql:Array ( [0] => 209 ) [2024-06-06 04:36:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-06-06 04:36:24] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-06 04:36:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-06 04:36:24] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => 209 ) [2024-06-06 04:36:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 04:36:24] local.DEBUG: Values for Sql:Array ( [0] => 209 ) [2024-06-06 04:38:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-06 04:38:47] local.DEBUG: Values for Sql:Array ( [0] => 209 ) [2024-06-06 04:38:47] local.DEBUG: Product Image Details: Array ( [product_id] => 209 [image_name] => 664554351717648727.png ) [2024-06-06 04:38:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-06 04:38:47] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => 209 ) [2024-06-06 04:38:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 04:38:47] local.DEBUG: Values for Sql:Array ( [0] => 209 ) [2024-06-06 04:38:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 04:38:53] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => -1 ) [2024-06-06 04:38:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 04:38:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 04:38:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 04:38:53] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => 1 [9] => 213 [10] => -1 ) [2024-06-06 04:38:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 04:38:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-06 04:38:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 04:38:53] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => 213 [9] => -1 ) [2024-06-06 04:38:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 04:38:53] local.DEBUG: Values for Sql:Array ( [0] => 209 [1] => 208 [2] => 189 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-06-06 04:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => -1 ) [2024-06-06 04:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 04:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => 1 [9] => 213 [10] => -1 ) [2024-06-06 04:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-06 04:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 [8] => 213 [9] => -1 ) [2024-06-06 04:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 209 [1] => 208 [2] => 189 [3] => 173 [4] => 172 [5] => 171 [6] => 128 [7] => 126 [8] => 125 [9] => 124 [10] => 123 [11] => 122 ) [2024-06-06 04:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-06 04:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 ) [2024-06-06 04:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 04:41:04] local.DEBUG: Values for Sql:Array ( [0] => 209 ) [2024-06-06 04:53:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 04:53:27] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-06-06 04:53:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 04:53:27] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-06-06 04:53:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 04:53:27] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-06 04:54:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 04:54:32] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-06-06 04:54:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 04:54:32] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-06-06 04:54:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 04:54:32] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-06 04:54:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 04:54:53] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-06-06 04:54:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 04:54:53] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-06-06 04:54:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 04:54:53] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-06 05:14:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 05:14:07] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-06-06 05:14:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 05:14:07] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-06-06 05:14:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 05:14:07] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-06 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-06 15:50:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 15:50:04] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-06-06 15:50:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 15:50:05] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-06-06 15:50:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 15:50:05] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-06 15:51:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 15:51:16] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-06-06 15:51:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 15:51:16] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-06-06 15:51:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 15:51:16] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-06 15:51:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 15:51:36] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => -1 ) [2024-06-06 15:51:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 15:51:36] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 15:51:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 15:51:36] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 1 [9] => 320 [10] => -1 ) [2024-06-06 15:51:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 15:51:36] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-06 15:51:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 15:51:36] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 [8] => 320 [9] => -1 ) [2024-06-06 15:51:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 15:51:36] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 15:51:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-09' and `tasks`.`due_by` > '2024-06-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-06 15:51:44] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-06-06 15:51:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-06 15:51:44] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 [7] => 1 ) [2024-06-06 15:51:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-06 15:51:44] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-06-06 17:34:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 17:34:04] local.DEBUG: Values for Sql:Array ( [0] => 182 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 231 ) [2024-06-06 17:34:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 17:34:05] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 ) [2024-06-06 17:34:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 17:34:05] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-06 17:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:34:10] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => -1 ) [2024-06-06 17:34:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:34:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 17:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:34:10] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 1 [9] => 231 [10] => -1 ) [2024-06-06 17:34:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:34:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-06 17:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:34:10] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 231 [9] => -1 ) [2024-06-06 17:34:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:34:10] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 17:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-09' and `tasks`.`due_by` > '2024-06-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-06 17:34:12] local.DEBUG: Values for Sql:Array ( [0] => 182 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 231 ) [2024-06-06 17:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-06 17:34:12] local.DEBUG: Values for Sql:Array ( [0] => 182 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 231 [7] => 1 ) [2024-06-06 17:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-06 17:34:12] local.DEBUG: Values for Sql:Array ( [0] => 182 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 231 ) [2024-06-06 17:34:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 17:34:58] local.DEBUG: Values for Sql:Array ( [0] => 182 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 231 ) [2024-06-06 17:34:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 17:34:58] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 ) [2024-06-06 17:34:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 17:34:58] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-06 17:35:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:35:18] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => -1 ) [2024-06-06 17:35:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:35:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 17:35:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:35:18] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 1 [9] => 231 [10] => -1 ) [2024-06-06 17:35:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:35:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-06 17:35:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:35:18] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 231 [9] => -1 ) [2024-06-06 17:35:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:35:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 17:35:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-06 17:35:44] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 1 ) [2024-06-06 17:35:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:35:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 172 [2] => 171 [3] => 109 ) [2024-06-06 17:35:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-06 17:35:44] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 1 ) [2024-06-06 17:35:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:35:47] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => -1 ) [2024-06-06 17:35:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:35:47] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 17:35:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:35:47] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 1 [9] => 231 [10] => -1 ) [2024-06-06 17:35:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:35:47] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-06 17:35:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:35:47] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 231 [9] => -1 ) [2024-06-06 17:35:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:35:47] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 17:35:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:35:57] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 1 ) [2024-06-06 17:35:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:35:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-06 17:35:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-06 17:35:58] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 ) [2024-06-06 17:35:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:35:58] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 ) [2024-06-06 17:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:36:01] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => -1 ) [2024-06-06 17:36:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:36:01] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 17:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:36:01] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 1 [9] => 231 [10] => -1 ) [2024-06-06 17:36:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:36:01] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-06 17:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:36:01] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 231 [9] => -1 ) [2024-06-06 17:36:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:36:01] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-06 17:36:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:36:03] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 1 ) [2024-06-06 17:36:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:36:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-06 17:36:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-06 17:36:03] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 ) [2024-06-06 17:36:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:36:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 ) [2024-06-06 17:36:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-06 17:36:12] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 122 ) [2024-06-06 17:36:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 17:36:12] local.DEBUG: Values for Sql:Array ( [0] => 122 ) [2024-06-06 17:36:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-06 17:36:26] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 [8] => 1 ) [2024-06-06 17:36:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:36:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-06 17:36:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-06 17:36:26] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 ) [2024-06-06 17:36:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-06 17:36:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 ) [2024-06-06 17:36:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 17:36:28] local.DEBUG: Values for Sql:Array ( [0] => 182 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 231 ) [2024-06-06 17:36:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 17:36:28] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 ) [2024-06-06 17:36:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 17:36:28] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-06 20:31:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-06 20:31:23] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 236 ) [2024-06-06 20:31:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-06 20:31:23] local.DEBUG: Values for Sql:Array ( [0] => 185 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 236 ) [2024-06-06 20:31:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-06 20:31:23] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-07 01:24:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 01:24:01] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-06-07 01:24:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 01:24:01] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-06-07 01:24:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 01:24:01] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-07 01:24:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 01:24:09] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-06-07 01:24:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 01:24:09] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-06-07 01:24:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 01:24:09] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-07 02:31:28] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"josephptufo@gmail.com","name":"Joseph Tufo"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Joseph Tufo,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">88690<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-07 02:31:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0b7c2180-2476-11ef-a08e-525400dc08cf.18ff0896b98","object":"email"} [2024-06-07 02:34:42] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 399 [2024-06-07 02:37:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 02:37:03] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 399 ) [2024-06-07 02:37:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 02:37:03] local.DEBUG: Values for Sql:Array ( [0] => 333 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 399 ) [2024-06-07 02:37:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 02:37:03] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-07 02:37:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 02:37:28] local.DEBUG: Values for Sql:Array ( [0] => 265 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 324 ) [2024-06-07 02:37:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 02:37:29] local.DEBUG: Values for Sql:Array ( [0] => 263 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 324 ) [2024-06-07 02:37:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 02:37:29] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-07 02:43:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 02:43:07] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 02:43:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-07 02:43:07] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 02:43:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 02:43:07] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-07 02:43:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-10' and `tasks`.`due_by` > '2024-06-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-06-07 02:43:15] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 02:43:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-06-07 02:43:15] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 02:43:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-07 02:43:17] local.DEBUG: Values for Sql:Array ( [0] => 91 ) [2024-06-07 02:43:17] local.DEBUG: task visible_to: [2024-06-07 02:44:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 02:44:10] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 02:44:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-07 02:44:10] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 02:44:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 02:44:10] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-07 02:44:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-10' and `tasks`.`due_by` > '2024-06-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-06-07 02:44:12] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 02:44:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-06-07 02:44:12] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 02:44:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-07 02:44:17] local.DEBUG: Values for Sql:Array ( [0] => 290 ) [2024-06-07 02:44:17] local.DEBUG: task visible_to: [2024-06-07 05:39:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-07 05:39:24] local.DEBUG: Values for Sql:Array ( [0] => 290 ) [2024-06-07 05:39:24] local.DEBUG: task visible_to: [2024-06-07 05:39:24] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-06-07 05:39:24] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 275 [2024-06-07 05:39:24] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fmfegurgur@gmail.com","name":"Francisco Fegurgur"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Francisco Fegurgur,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> homework<\\/li>\\n <li><strong>Assigned To:<\\/strong> Emelia Fegurgur<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-07 05:39:25] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.4c9b2020-2490-11ef-8942-5254000b1a0e.18ff1357b22","object":"email"} [2024-06-07 05:39:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-07 05:39:25] local.DEBUG: Values for Sql:Array ( [0] => 290 ) [2024-06-07 05:39:25] local.DEBUG: task visible_to: [2024-06-07 05:39:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-07 05:39:32] local.DEBUG: Values for Sql:Array ( [0] => 291 ) [2024-06-07 05:39:32] local.DEBUG: task visible_to: [2024-06-07 05:39:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-07 05:39:36] local.DEBUG: Values for Sql:Array ( [0] => 291 ) [2024-06-07 05:39:36] local.DEBUG: task visible_to: [2024-06-07 05:39:36] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-06-07 05:39:36] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 275 [2024-06-07 05:39:36] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fmfegurgur@gmail.com","name":"Francisco Fegurgur"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Francisco Fegurgur,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Daily attendance<\\/li>\\n <li><strong>Assigned To:<\\/strong> Emelia Fegurgur<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-07 05:39:36] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.53968a40-2490-11ef-8942-5254000b1a0e.18ff135a8e4","object":"email"} [2024-06-07 05:39:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-07 05:39:37] local.DEBUG: Values for Sql:Array ( [0] => 291 ) [2024-06-07 05:39:37] local.DEBUG: task visible_to: [2024-06-07 05:39:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-07 05:39:43] local.DEBUG: Values for Sql:Array ( [0] => 91 ) [2024-06-07 05:39:43] local.DEBUG: task visible_to: [2024-06-07 05:40:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 05:40:21] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 05:40:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-07 05:40:21] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 05:40:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:40:21] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-07 05:40:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-10' and `tasks`.`due_by` > '2024-06-07' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-06-07 05:40:30] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 05:40:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-06-07 05:40:30] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 05:40:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-07 05:40:33] local.DEBUG: Values for Sql:Array ( [0] => 91 ) [2024-06-07 05:40:33] local.DEBUG: task visible_to: [2024-06-07 05:40:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 05:40:48] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 05:40:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-07 05:40:48] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 05:40:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:40:48] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-07 05:40:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-07 05:40:59] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-07 05:40:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:40:59] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-07 05:40:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-07 05:40:59] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 05:40:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:40:59] local.DEBUG: Values for Sql:Array ( [0] => 273 [1] => 272 [2] => 268 [3] => 267 [4] => 266 [5] => 208 [6] => 173 [7] => 172 [8] => 171 [9] => 128 [10] => 126 [11] => 125 [12] => 124 [13] => 123 [14] => 122 [15] => 121 [16] => 120 [17] => 119 [18] => 118 [19] => 117 ) [2024-06-07 05:41:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-07 05:41:02] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 171 ) [2024-06-07 05:41:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 05:41:02] local.DEBUG: Values for Sql:Array ( [0] => 171 ) [2024-06-07 05:41:02] local.DEBUG: Current Balance: 50 [2024-06-07 05:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-07 05:41:04] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-07 05:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:41:04] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-07 05:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-07 05:41:04] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 05:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:41:04] local.DEBUG: Values for Sql:Array ( [0] => 273 [1] => 272 [2] => 268 [3] => 267 [4] => 266 [5] => 208 [6] => 173 [7] => 172 [8] => 171 [9] => 128 [10] => 126 [11] => 125 [12] => 124 [13] => 123 [14] => 122 [15] => 121 [16] => 120 [17] => 119 [18] => 118 [19] => 117 ) [2024-06-07 05:41:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-07 05:41:06] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 208 ) [2024-06-07 05:41:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 05:41:06] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-07 05:41:06] local.DEBUG: Current Balance: 50 [2024-06-07 05:41:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-07 05:41:12] local.DEBUG: Values for Sql:Array ( [0] => 290 ) [2024-06-07 05:41:12] local.DEBUG: task visible_to: [2024-06-07 05:41:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-07 05:41:25] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-07 05:41:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:41:25] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-07 05:41:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-07 05:41:25] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 05:41:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:41:25] local.DEBUG: Values for Sql:Array ( [0] => 273 [1] => 272 [2] => 268 [3] => 267 [4] => 266 [5] => 208 [6] => 173 [7] => 172 [8] => 171 [9] => 128 [10] => 126 [11] => 125 [12] => 124 [13] => 123 [14] => 122 [15] => 121 [16] => 120 [17] => 119 [18] => 118 [19] => 117 ) [2024-06-07 05:41:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-07 05:41:33] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 272 ) [2024-06-07 05:41:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 05:41:33] local.DEBUG: Values for Sql:Array ( [0] => 272 ) [2024-06-07 05:41:33] local.DEBUG: Current Balance: 50 [2024-06-07 05:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-07 05:41:41] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-07 05:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:41:41] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-07 05:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-07 05:41:41] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 05:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:41:41] local.DEBUG: Values for Sql:Array ( [0] => 273 [1] => 272 [2] => 268 [3] => 267 [4] => 266 [5] => 208 [6] => 173 [7] => 172 [8] => 171 [9] => 128 [10] => 126 [11] => 125 [12] => 124 [13] => 123 [14] => 122 [15] => 121 [16] => 120 [17] => 119 [18] => 118 [19] => 117 ) [2024-06-07 05:48:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 05:48:46] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-07 05:48:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 05:48:46] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-07 05:48:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 05:48:47] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-07 05:48:55] local.DEBUG: Review allowed to UserId: 275 for ClaimId:35, Reason: User is the owner of the group, and task belongs to the same group [2024-06-07 05:48:55] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> homework<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-07 05:48:55] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.a0af0fe0-2491-11ef-8630-525400d6cd4f.18ff13e2fde","object":"email"} [2024-06-07 05:48:55] local.INFO: 0.10000000 points allocated for CLAIM_REVIEW_BY_PARENT to 275 [2024-06-07 05:49:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 05:49:01] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-07 05:49:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 05:49:01] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-07 05:49:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 05:49:01] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-07 05:49:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-07 05:49:02] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 [8] => -1 ) [2024-06-07 05:49:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:49:02] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-07 05:49:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-07 05:49:02] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 [8] => 1 [9] => 275 [10] => -1 ) [2024-06-07 05:49:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:49:02] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-07 05:49:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-07 05:49:02] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 [8] => 275 [9] => -1 ) [2024-06-07 05:49:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 05:49:02] local.DEBUG: Values for Sql:Array ( [0] => 273 [1] => 272 [2] => 268 [3] => 267 [4] => 266 [5] => 208 [6] => 173 [7] => 172 [8] => 171 [9] => 128 [10] => 126 [11] => 125 ) [2024-06-07 05:49:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 05:49:12] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-07 05:49:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 05:49:12] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-07 05:49:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 05:49:12] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-07 07:05:09] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-07 12:13:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 12:13:16] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-06-07 12:13:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 12:13:16] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-06-07 12:13:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 12:13:16] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-07 12:13:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 12:13:16] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-07 12:13:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 12:13:16] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-06-07 12:13:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 12:13:16] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-06-07 12:20:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 12:20:21] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-06-07 12:20:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 12:20:21] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-07 12:20:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 12:20:21] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-06-07 12:22:21] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartiktest.0001@gmail.com","name":"Kartik test"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kartik test,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">58503<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-07 12:22:22] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.972024a0-24c8-11ef-92bd-5254008f5018.18ff2a663ea","object":"email"} [2024-06-07 12:23:05] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 400 [2024-06-07 12:23:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 12:23:25] local.DEBUG: Values for Sql:Array ( [0] => 400 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 12:23:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-07 12:23:25] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 12:23:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 12:23:25] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-07 12:23:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-07' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 12:23:34] local.DEBUG: Values for Sql:Array ( [0] => 400 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 12:23:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-07 12:23:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-07 12:23:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-07 12:23:34] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-07 12:23:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 12:23:44] local.DEBUG: Values for Sql:Array ( [0] => 69 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => COUNTRY_PARENT [12] => COUNTRY_PARENT_AND_CHILD [13] => COUNTRY [14] => United States ) [2024-06-07 12:23:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 12:23:44] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-07 12:23:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 12:23:44] local.DEBUG: Values for Sql:Array ( [0] => 276 ) [2024-06-07 17:37:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-07 17:37:59] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-07 17:38:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-07 17:38:00] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 ) [2024-06-07 17:38:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-07 17:38:00] local.DEBUG: Values for Sql:Array ( [0] => 209 ) [2024-06-08 00:33:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 00:33:38] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 320 ) [2024-06-08 00:33:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 00:33:38] local.DEBUG: Values for Sql:Array ( [0] => 259 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 320 ) [2024-06-08 00:33:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 00:33:38] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 02:11:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 02:11:00] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-08 02:11:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 02:11:00] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-08 02:11:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 02:11:00] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-08 06:02:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:02:25] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:02:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:02:25] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:02:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:02:25] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:02:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-11' and `tasks`.`due_by` > '2024-06-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-06-08 06:02:40] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:02:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-06-08 06:02:40] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:02:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-08 06:02:42] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-08 06:02:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:02:42] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-08 06:02:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-08 06:02:42] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:02:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:02:43] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 [12] => 119 [13] => 118 [14] => 117 [15] => 116 [16] => 115 [17] => 109 [18] => 107 [19] => 106 ) [2024-06-08 06:02:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-08 06:02:47] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 208 ) [2024-06-08 06:02:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:02:47] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:02:47] local.DEBUG: Current Balance: 0 [2024-06-08 06:02:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:02:56] local.DEBUG: Values for Sql:Array ( [0] => 290 ) [2024-06-08 06:02:56] local.DEBUG: task visible_to: [2024-06-08 06:02:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:02:58] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:02:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:02:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:02:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:02:58] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:03:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-11' and `tasks`.`due_by` > '2024-06-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-06-08 06:03:00] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:03:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-06-08 06:03:00] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:03:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:03:02] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-08 06:03:02] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-08 06:03:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-08 06:03:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 201 ) [2024-06-08 06:03:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:03:04] local.DEBUG: Values for Sql:Array ( [0] => 201 ) [2024-06-08 06:03:04] local.DEBUG: Current Balance: 0 [2024-06-08 06:03:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:03:13] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-08 06:03:13] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-08 06:03:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:03:48] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:03:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:03:48] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:03:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:03:48] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:04:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-11' and `tasks`.`due_by` > '2024-06-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-06-08 06:04:04] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-06-08 06:04:04] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-08 06:04:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-08 06:04:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:04:07] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-08 06:04:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-08 06:04:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:04:07] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 [12] => 119 [13] => 118 [14] => 117 [15] => 116 [16] => 115 [17] => 109 [18] => 107 [19] => 106 ) [2024-06-08 06:04:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-08 06:04:11] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 208 ) [2024-06-08 06:04:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:04:11] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:04:11] local.DEBUG: Current Balance: 0 [2024-06-08 06:04:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:04:11] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:04:11] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:04:11] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:04:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:04:21] local.DEBUG: Values for Sql:Array ( [0] => 290 ) [2024-06-08 06:04:21] local.DEBUG: task visible_to: [2024-06-08 06:04:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:04:23] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:04:23] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:04:23] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:04:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-11' and `tasks`.`due_by` > '2024-06-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-06-08 06:04:27] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-06-08 06:04:27] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-08 06:04:30] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-08 06:04:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:04:30] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-08 06:04:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-08 06:04:30] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:04:30] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 [12] => 119 [13] => 118 [14] => 117 [15] => 116 [16] => 115 [17] => 109 [18] => 107 [19] => 106 ) [2024-06-08 06:04:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-08 06:04:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 208 ) [2024-06-08 06:04:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:04:34] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:04:34] local.DEBUG: Current Balance: 0 [2024-06-08 06:04:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-08 06:04:43] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-08 06:04:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:04:43] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-08 06:04:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-08 06:04:43] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:04:43] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 [12] => 119 [13] => 118 [14] => 117 [15] => 116 [16] => 115 [17] => 109 [18] => 107 [19] => 106 ) [2024-06-08 06:04:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:04:44] local.DEBUG: Values for Sql:Array ( [0] => 290 ) [2024-06-08 06:04:44] local.DEBUG: task visible_to: [2024-06-08 06:04:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:04:46] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:04:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:04:46] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:04:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-08 06:04:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-08 06:04:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:04:46] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-08 06:04:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-08 06:04:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 5 ) [2024-06-08 06:04:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:04:46] local.DEBUG: Values for Sql:Array ( [0] => 91 [1] => 90 [2] => 89 [3] => 88 [4] => 87 ) [2024-06-08 06:04:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-11' and `tasks`.`due_by` > '2024-06-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-06-08 06:04:48] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => 13269 [4] => COUNTRY_PARENT_AND_CHILD [5] => COUNTRY [6] => Afghanistan [7] => GLOBAL [8] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-06-08 06:04:48] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => 13269 [4] => COUNTRY_PARENT_AND_CHILD [5] => COUNTRY [6] => Afghanistan [7] => GLOBAL [8] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:04:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-08 06:04:50] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 13269 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 90 ) [2024-06-08 06:04:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:04:50] local.DEBUG: Values for Sql:Array ( [0] => 90 ) [2024-06-08 06:04:50] local.DEBUG: Current Balance: 0 [2024-06-08 06:04:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:04:50] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-08 06:04:50] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-08 06:04:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-08 06:04:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 13269 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 201 ) [2024-06-08 06:04:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:04:53] local.DEBUG: Values for Sql:Array ( [0] => 201 ) [2024-06-08 06:04:53] local.DEBUG: Current Balance: 0 [2024-06-08 06:05:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:05:03] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-08 06:05:03] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-08 06:05:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:05:16] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => 13269 [4] => COUNTRY_PARENT_AND_CHILD [5] => COUNTRY [6] => Afghanistan [7] => GLOBAL [8] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:05:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:05:16] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 13269 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-08 06:05:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:05:16] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:05:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:05:32] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => 13269 [4] => COUNTRY_PARENT_AND_CHILD [5] => COUNTRY [6] => Afghanistan [7] => GLOBAL [8] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:05:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:05:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 13269 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-08 06:05:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:05:32] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:05:35] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => 13269 [4] => COUNTRY_PARENT_AND_CHILD [5] => COUNTRY [6] => Afghanistan [7] => GLOBAL [8] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:05:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:05:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 13269 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-08 06:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:05:35] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:05:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:05:57] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => 13269 [4] => COUNTRY_PARENT_AND_CHILD [5] => COUNTRY [6] => Afghanistan [7] => GLOBAL [8] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:05:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:05:57] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 13269 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-08 06:05:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:05:57] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:07:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:07:00] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => 13269 [4] => COUNTRY_PARENT_AND_CHILD [5] => COUNTRY [6] => Afghanistan [7] => GLOBAL [8] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:07:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:07:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 13269 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-08 06:07:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:07:00] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:07:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:07:19] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => 13269 [4] => COUNTRY_PARENT_AND_CHILD [5] => COUNTRY [6] => Afghanistan [7] => GLOBAL [8] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 06:07:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 06:07:19] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => ZIPCODE_PARENT_AND_CHILD [5] => ZIPCODE [6] => 13269 [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-08 06:07:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:07:19] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-08 06:56:19] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 401 [8] => -1 ) [2024-06-08 06:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:56:19] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-08 06:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-08 06:56:19] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 401 [8] => 1 [9] => 401 [10] => -1 ) [2024-06-08 06:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:56:19] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-08 06:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-08 06:56:19] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 401 [8] => 401 [9] => -1 ) [2024-06-08 06:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 06:56:19] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-08 06:56:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:56:43] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:56:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 06:56:43] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 401 ) [2024-06-08 06:56:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:56:43] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:56:45] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:56:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 06:56:45] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 401 ) [2024-06-08 06:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:56:45] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:56:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:56:46] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:56:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 06:56:46] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 401 ) [2024-06-08 06:56:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:56:46] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:56:56] local.ERROR: error while retriving price from dextools [2024-06-08 06:56:56] local.ERROR: cURL error 28: Resolving timed out after 10000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://public-api.dextools.io/trial/v2/pool/ether/0xe0fca1c1f2e6b07a9096723ceac992e721a54e7c/price [2024-06-08 06:56:56] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/helpers.php(247): Illuminate\Http\Client\PendingRequest->Illuminate\Http\Client\{closure}() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Client/PendingRequest.php(863): retry() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Client/PendingRequest.php(700): Illuminate\Http\Client\PendingRequest->send() #3 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TUITService.php(173): Illuminate\Http\Client\PendingRequest->get() #4 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TUITService.php(154): App\V2\Services\TUITService->getPrice() #5 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ParentController.php(872): App\V2\Services\TUITService->getTUIT_To_USDT() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->getUserDashboardForApp() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #44 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #45 {main} [2024-06-08 06:56:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:56:56] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:56:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 06:56:56] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 401 ) [2024-06-08 06:56:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:56:56] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:57:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:57:25] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:57:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 06:57:25] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 401 ) [2024-06-08 06:57:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:57:25] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:57:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-11' and `tasks`.`due_by` > '2024-06-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:57:48] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:57:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:57:48] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 [7] => 1 ) [2024-06-08 06:57:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:57:48] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:58:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:58:08] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:58:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 06:58:08] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 401 ) [2024-06-08 06:58:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:58:08] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 06:58:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-11' and `tasks`.`due_by` > '2024-06-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:58:12] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:58:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:58:12] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 [7] => 1 ) [2024-06-08 06:58:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:58:12] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:58:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:58:28] local.DEBUG: Values for Sql:Array ( [0] => 278 ) [2024-06-08 06:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-11' and `tasks`.`due_by` > '2024-06-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:58:38] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:58:38] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 [7] => 1 ) [2024-06-08 06:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 06:58:38] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:58:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 06:58:40] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 401 ) [2024-06-08 06:58:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 06:58:40] local.DEBUG: Values for Sql:Array ( [0] => 334 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 401 ) [2024-06-08 06:58:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 06:58:40] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-08 08:12:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 08:12:13] local.DEBUG: Values for Sql:Array ( [0] => 263 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 322 ) [2024-06-08 08:12:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 08:12:13] local.DEBUG: Values for Sql:Array ( [0] => 261 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 322 ) [2024-06-08 08:12:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 08:12:13] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 19:35:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 19:35:57] local.DEBUG: Values for Sql:Array ( [0] => 289 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 19:35:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 19:35:57] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 19:35:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 19:35:57] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 19:36:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 19:36:12] local.DEBUG: Values for Sql:Array ( [0] => 289 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 19:36:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 19:36:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 19:36:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 19:36:12] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 19:36:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-08 19:36:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-08 19:36:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 19:36:14] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-08 19:36:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-08 19:36:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 19:36:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 19:36:14] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 [12] => 119 [13] => 118 [14] => 117 [15] => 116 [16] => 115 [17] => 109 [18] => 107 [19] => 106 ) [2024-06-08 19:36:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-08 19:36:37] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 109 ) [2024-06-08 19:36:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 19:36:37] local.DEBUG: Values for Sql:Array ( [0] => 109 ) [2024-06-08 19:36:37] local.DEBUG: Current Balance: 0 [2024-06-08 19:36:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-08 19:36:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-08 19:36:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 19:36:55] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-08 19:36:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-08 19:36:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 19:36:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 19:36:55] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 [12] => 119 [13] => 118 [14] => 117 [15] => 116 [16] => 115 [17] => 109 [18] => 107 [19] => 106 ) [2024-06-08 19:36:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 19:36:59] local.DEBUG: Values for Sql:Array ( [0] => 289 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 19:36:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 19:36:59] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 19:36:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 19:36:59] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 20:54:11] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"lgordon2138@gmail.com","name":"Lisa Jones"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Lisa Jones,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">65127<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-08 20:54:11] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.42129620-25d9-11ef-adac-52540064429e.18ff9a15882","object":"email"} [2024-06-08 20:54:33] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 402 [2024-06-08 20:56:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 20:56:40] local.DEBUG: Values for Sql:Array ( [0] => 402 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 20:56:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 20:56:40] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 20:56:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 20:56:40] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 20:57:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 20:57:32] local.DEBUG: Values for Sql:Array ( [0] => 402 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 20:57:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 20:57:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 20:57:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 20:57:32] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 20:57:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-11' and `tasks`.`due_by` > '2024-06-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-06-08 20:57:51] local.DEBUG: Values for Sql:Array ( [0] => 402 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 20:57:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-06-08 20:57:51] local.DEBUG: Values for Sql:Array ( [0] => 402 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 20:58:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 20:58:13] local.DEBUG: Values for Sql:Array ( [0] => 402 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 20:58:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 20:58:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 20:58:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 20:58:13] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-08 21:07:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 21:07:52] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 21:07:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 21:07:52] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 21:07:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 21:07:53] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-08 21:07:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-06-11' and `tasks`.`due_by` > '2024-06-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-06-08 21:07:58] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 21:07:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-06-08 21:07:58] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 21:09:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 21:09:12] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-08 21:09:12] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-08 21:09:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 21:09:38] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-08 21:09:38] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-08 21:09:38] local.DEBUG: task is not assigned to user, but it is visible, so creating new assignment [2024-06-08 21:09:38] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Learn Newton's third law<\\/li>\\n <li><strong>Assigned By:<\\/strong> Francisco Fegurgur<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-08 21:09:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6aa887f0-25db-11ef-825c-525400f92481.18ff9af7def","object":"email"} [2024-06-08 21:09:39] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 275 [2024-06-08 21:09:39] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fmfegurgur@gmail.com","name":"Francisco Fegurgur"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Francisco Fegurgur,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Learn Newton's third law<\\/li>\\n <li><strong>Assigned To:<\\/strong> Emelia Fegurgur<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-08 21:09:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6aed5920-25db-11ef-9335-5254000b1a0e.18ff9af7fb2","object":"email"} [2024-06-08 21:09:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 21:09:39] local.DEBUG: Values for Sql:Array ( [0] => 238 ) [2024-06-08 21:09:39] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-08 21:09:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-06-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 21:09:49] local.DEBUG: Values for Sql:Array ( [0] => 312 [1] => ZIPCODE_PARENT_AND_CHILD [2] => ZIPCODE [3] => GLOBAL [4] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 21:09:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-08 21:09:49] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-08 21:09:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-08 21:09:49] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-08 21:13:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 21:13:52] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-08 21:13:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 21:13:52] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-08 21:13:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 21:13:52] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-08 21:13:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-11' and `tasks`.`due_by` > '2024-06-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 21:13:56] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-08 21:13:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 21:13:56] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 [7] => 1 ) [2024-06-08 21:13:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-08 21:13:56] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-08 21:13:59] local.DEBUG: Review allowed to UserId: 275 for ClaimId:38, Reason: User is the owner of the group, and claim is also in the same group [2024-06-08 21:13:59] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Learn Newton's third law<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-08 21:14:00] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0636c420-25dc-11ef-922b-525400d4bb1c.18ff9b37962","object":"email"} [2024-06-08 21:14:00] local.INFO: 0.10000000 points allocated for CLAIM_REVIEW_BY_PARENT to 275 [2024-06-08 21:22:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-08 21:22:19] local.DEBUG: Values for Sql:Array ( [0] => 220 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-08 21:22:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-08 21:22:19] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-08 21:22:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-08 21:22:20] local.DEBUG: Values for Sql:Array ( [0] => 273 ) [2024-06-09 02:33:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 02:33:32] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-06-09 02:33:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 02:33:32] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-06-09 02:33:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 02:33:32] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 02:47:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 02:47:01] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:47:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 02:47:01] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 403 ) [2024-06-09 02:47:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 02:47:01] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 02:47:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-12' and `tasks`.`due_by` > '2024-06-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:47:35] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:47:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:47:35] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 1 ) [2024-06-09 02:47:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:47:35] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:47:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:47:55] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 3 ) [2024-06-09 02:48:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-12' and `tasks`.`due_by` > '2024-06-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:48:02] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:48:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:48:02] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 1 ) [2024-06-09 02:48:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:48:02] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:48:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 02:48:06] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:48:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 02:48:06] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 403 ) [2024-06-09 02:48:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 02:48:06] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 02:48:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-12' and `tasks`.`due_by` > '2024-06-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:48:42] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:48:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:48:42] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 1 ) [2024-06-09 02:48:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:48:42] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:48:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:48:53] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 1 ) [2024-06-09 02:49:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:02] local.DEBUG: Values for Sql:Array ( [0] => 196 ) [2024-06-09 02:49:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-12' and `tasks`.`due_by` > '2024-06-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:24] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:49:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:24] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 1 ) [2024-06-09 02:49:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:24] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:49:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:27] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 1 ) [2024-06-09 02:49:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 02:49:37] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:49:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 02:49:37] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 403 ) [2024-06-09 02:49:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 02:49:37] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 02:49:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-12' and `tasks`.`due_by` > '2024-06-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:39] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:49:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:39] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 1 ) [2024-06-09 02:49:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:39] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:49:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:52] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 2 ) [2024-06-09 02:49:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-12' and `tasks`.`due_by` > '2024-06-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:53] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:49:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:53] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 1 ) [2024-06-09 02:49:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:53] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:49:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:55] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-12' and `tasks`.`due_by` > '2024-06-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:58] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:58] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 1 ) [2024-06-09 02:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:49:58] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:50:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:50:00] local.DEBUG: Values for Sql:Array ( [0] => 1 ) [2024-06-09 02:50:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-06-09 02:50:00] local.DEBUG: Values for Sql:Array ( [0] => 0 ) [2024-06-09 02:50:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-12' and `tasks`.`due_by` > '2024-06-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:50:05] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:50:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:50:05] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 1 ) [2024-06-09 02:50:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:50:05] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:50:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 02:50:06] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:50:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 02:50:06] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 403 ) [2024-06-09 02:50:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 02:50:06] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 02:50:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 02:50:25] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:50:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 02:50:25] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 403 ) [2024-06-09 02:50:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 02:50:25] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 02:50:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 02:50:28] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 403 [8] => -1 ) [2024-06-09 02:50:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 02:50:28] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 02:50:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 02:50:28] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 403 [8] => 1 [9] => 403 [10] => -1 ) [2024-06-09 02:50:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 02:50:28] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-09 02:50:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 02:50:28] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 403 [8] => 403 [9] => -1 ) [2024-06-09 02:50:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 02:50:28] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 02:50:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 02:50:44] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 403 [8] => -1 ) [2024-06-09 02:50:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 02:50:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 02:50:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 02:50:44] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 403 [8] => 1 [9] => 403 [10] => -1 ) [2024-06-09 02:50:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 02:50:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-09 02:50:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 02:50:44] local.DEBUG: Values for Sql:Array ( [0] => 335 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 403 [8] => 403 [9] => -1 ) [2024-06-09 02:50:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 02:50:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 02:50:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-12' and `tasks`.`due_by` > '2024-06-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:50:57] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 02:50:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:50:57] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 [7] => 1 ) [2024-06-09 02:50:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 02:50:57] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 403 ) [2024-06-09 03:51:28] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-09 03:51:29] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-09 05:14:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 05:14:23] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 ) [2024-06-09 05:14:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 05:14:23] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 ) [2024-06-09 05:14:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 05:14:23] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 05:14:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 05:14:52] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 ) [2024-06-09 05:14:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 05:14:52] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 ) [2024-06-09 05:14:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 05:14:52] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 05:14:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 05:14:58] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 ) [2024-06-09 05:14:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 05:14:58] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 ) [2024-06-09 05:14:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 05:14:58] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 05:15:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 05:15:03] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => -1 ) [2024-06-09 05:15:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 05:15:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 05:15:03] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 1 [13] => 232 [14] => -1 ) [2024-06-09 05:15:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-09 05:15:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 05:15:03] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 232 [13] => -1 ) [2024-06-09 05:15:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:03] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 05:15:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-09 05:15:17] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 4 ) [2024-06-09 05:15:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:17] local.DEBUG: Values for Sql:Array ( [0] => 107 [1] => 106 [2] => 105 [3] => 104 [4] => 102 [5] => 101 [6] => 99 [7] => 98 [8] => 97 [9] => 95 ) [2024-06-09 05:15:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-09 05:15:20] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 4 ) [2024-06-09 05:15:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:20] local.DEBUG: Values for Sql:Array ( [0] => 94 ) [2024-06-09 05:15:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-09 05:15:20] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 4 ) [2024-06-09 05:15:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 05:15:22] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => -1 ) [2024-06-09 05:15:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 05:15:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 05:15:22] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 1 [13] => 232 [14] => -1 ) [2024-06-09 05:15:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-09 05:15:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 05:15:22] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 232 [13] => -1 ) [2024-06-09 05:15:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 05:15:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-09 05:15:25] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 3 ) [2024-06-09 05:15:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:25] local.DEBUG: Values for Sql:Array ( [0] => 173 [1] => 115 ) [2024-06-09 05:15:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-09 05:15:25] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 3 ) [2024-06-09 05:15:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-09 05:15:28] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 115 ) [2024-06-09 05:15:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 05:15:28] local.DEBUG: Values for Sql:Array ( [0] => 115 ) [2024-06-09 05:15:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 05:15:45] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => -1 ) [2024-06-09 05:15:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:45] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 05:15:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 05:15:45] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 1 [13] => 232 [14] => -1 ) [2024-06-09 05:15:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:45] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-09 05:15:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 05:15:45] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 [12] => 232 [13] => -1 ) [2024-06-09 05:15:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 05:15:45] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 05:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-12' and `tasks`.`due_by` > '2024-06-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:15:53] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 ) [2024-06-09 05:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:15:53] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 [11] => 1 ) [2024-06-09 05:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:15:53] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 ) [2024-06-09 05:16:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:16:02] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 [11] => 1 ) [2024-06-09 05:16:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:16:07] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 [11] => 1 ) [2024-06-09 05:16:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:16:10] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 [11] => 2 ) [2024-06-09 05:16:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:16:13] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 [11] => 3 ) [2024-06-09 05:16:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:16:13] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 [11] => 3 ) [2024-06-09 05:16:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:16:22] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 [11] => 5 ) [2024-06-09 05:16:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:16:24] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 [11] => 10 ) [2024-06-09 05:16:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:16:28] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 [11] => 11 ) [2024-06-09 05:16:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:16:28] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 [11] => 11 ) [2024-06-09 05:16:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-09 05:16:29] local.DEBUG: Values for Sql:Array ( [0] => 303 ) [2024-06-09 05:17:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 05:17:06] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 ) [2024-06-09 05:17:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 05:17:06] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 ) [2024-06-09 05:17:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 05:17:06] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 05:17:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 05:17:13] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 ) [2024-06-09 05:17:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 05:17:13] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 ) [2024-06-09 05:17:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 05:17:13] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 05:17:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 05:17:13] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 ) [2024-06-09 05:17:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 05:17:13] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 ) [2024-06-09 05:17:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 05:17:13] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 05:17:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 05:17:18] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 ) [2024-06-09 05:17:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 05:17:18] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 ) [2024-06-09 05:17:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 05:17:18] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 05:17:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 05:17:18] local.DEBUG: Values for Sql:Array ( [0] => 183 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 232 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 95630 ) [2024-06-09 05:17:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 05:17:18] local.DEBUG: Values for Sql:Array ( [0] => 181 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 232 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 95630 ) [2024-06-09 05:17:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 05:17:18] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-09 17:01:54] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-09 17:01:54] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-09 18:56:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 18:56:43] local.DEBUG: Values for Sql:Array ( [0] => 174 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-06-09 18:56:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 18:56:43] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-06-09 18:56:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 18:56:43] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-09 22:06:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 22:06:27] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 238 [8] => -1 ) [2024-06-09 22:06:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 22:06:27] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 22:06:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 22:06:27] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 238 [8] => 1 [9] => 238 [10] => -1 ) [2024-06-09 22:06:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 22:06:27] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-09 22:06:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-09 22:06:27] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 238 [8] => 238 [9] => -1 ) [2024-06-09 22:06:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-09 22:06:27] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-09 22:40:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-09 22:40:19] local.DEBUG: Values for Sql:Array ( [0] => 182 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 231 ) [2024-06-09 22:40:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-09 22:40:19] local.DEBUG: Values for Sql:Array ( [0] => 180 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 231 ) [2024-06-09 22:40:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-09 22:40:19] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 01:15:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 01:15:01] local.DEBUG: Values for Sql:Array ( [0] => 136 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 185 ) [2024-06-10 01:15:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 01:15:01] local.DEBUG: Values for Sql:Array ( [0] => 134 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 185 ) [2024-06-10 01:15:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 01:15:01] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 01:15:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 01:15:01] local.DEBUG: Values for Sql:Array ( [0] => 136 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 185 ) [2024-06-10 01:15:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 01:15:01] local.DEBUG: Values for Sql:Array ( [0] => 134 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 185 ) [2024-06-10 01:15:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 01:15:01] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 01:18:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 01:18:31] local.DEBUG: Values for Sql:Array ( [0] => 134 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 185 [8] => -1 ) [2024-06-10 01:18:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 01:18:31] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 01:18:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 01:18:31] local.DEBUG: Values for Sql:Array ( [0] => 134 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 185 [8] => 1 [9] => 185 [10] => -1 ) [2024-06-10 01:18:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 01:18:31] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-10 01:18:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 01:18:31] local.DEBUG: Values for Sql:Array ( [0] => 134 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 185 [8] => 185 [9] => -1 ) [2024-06-10 01:18:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 01:18:31] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 01:18:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 01:18:49] local.DEBUG: Values for Sql:Array ( [0] => 136 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 185 ) [2024-06-10 01:18:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 01:18:49] local.DEBUG: Values for Sql:Array ( [0] => 134 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 185 ) [2024-06-10 01:18:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 01:18:49] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 01:27:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 133 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 184 [8] => -1 ) [2024-06-10 01:27:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 133 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 184 [8] => -1 ) [2024-06-10 01:27:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 01:27:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 133 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 184 [8] => 1 [9] => 184 [10] => -1 ) [2024-06-10 01:27:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 01:27:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-10 01:27:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 133 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 184 [8] => 1 [9] => 184 [10] => -1 ) [2024-06-10 01:27:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 133 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 184 [8] => 184 [9] => -1 ) [2024-06-10 01:27:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-10 01:27:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 133 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 184 [8] => 184 [9] => -1 ) [2024-06-10 01:27:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 01:27:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 01:27:44] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 01:28:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 01:28:10] local.DEBUG: Values for Sql:Array ( [0] => 135 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 184 ) [2024-06-10 01:28:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 01:28:10] local.DEBUG: Values for Sql:Array ( [0] => 133 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 184 ) [2024-06-10 01:28:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 01:28:10] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 01:28:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 01:28:10] local.DEBUG: Values for Sql:Array ( [0] => 135 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 184 ) [2024-06-10 01:28:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 01:28:10] local.DEBUG: Values for Sql:Array ( [0] => 133 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 184 ) [2024-06-10 01:28:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 01:28:10] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 04:30:41] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"hopekook@gmail.com","name":"hopekook"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hopekook,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">98012<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-10 04:30:42] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.327186e1-26e2-11ef-81b1-525400dc08cf.1900069a63f","object":"email"} [2024-06-10 05:02:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:02:08] local.DEBUG: Values for Sql:Array ( [0] => 203 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 252 ) [2024-06-10 05:02:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:02:08] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 ) [2024-06-10 05:02:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:02:08] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:02:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-13' and `tasks`.`due_by` > '2024-06-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:02:20] local.DEBUG: Values for Sql:Array ( [0] => 203 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 252 ) [2024-06-10 05:02:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:02:20] local.DEBUG: Values for Sql:Array ( [0] => 203 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 252 [7] => 1 ) [2024-06-10 05:02:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:02:20] local.DEBUG: Values for Sql:Array ( [0] => 203 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 252 ) [2024-06-10 05:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:02:30] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-10 05:06:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:06:54] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:06:54] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:06:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:06:54] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:07:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:07:10] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:07:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:07:10] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:07:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:07:10] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:07:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:07:14] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:07:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:07:14] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:07:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:07:14] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:07:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-13' and `tasks`.`due_by` > '2024-06-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:07:16] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:07:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:07:16] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 [7] => 1 ) [2024-06-10 05:07:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:07:16] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:07:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:07:48] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:07:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:07:48] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:07:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:07:48] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:07:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:07:50] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => -1 ) [2024-06-10 05:07:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:07:50] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:07:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:07:50] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 1 [9] => 405 [10] => -1 ) [2024-06-10 05:07:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:07:50] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-10 05:07:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:07:50] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 405 [9] => -1 ) [2024-06-10 05:07:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:07:50] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:08:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:08:58] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:08:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:08:58] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:08:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:08:58] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:09:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:09:21] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:09:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:09:21] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:09:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:09:21] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:09:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:09:23] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => -1 ) [2024-06-10 05:09:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:09:23] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:09:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:09:23] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 1 [9] => 405 [10] => -1 ) [2024-06-10 05:09:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:09:23] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-10 05:09:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:09:23] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 405 [9] => -1 ) [2024-06-10 05:09:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:09:23] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:09:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:09:33] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:09:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:09:33] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:09:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:09:33] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:09:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-13' and `tasks`.`due_by` > '2024-06-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:09:36] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:09:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:09:36] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 [7] => 1 ) [2024-06-10 05:09:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:09:36] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:09:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:09:44] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:09:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:09:44] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:09:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:09:44] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:09:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:09:55] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:09:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:09:55] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:09:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:09:55] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:10:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:10:15] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:10:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:10:15] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:10:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:10:15] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:10:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:10:45] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:10:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:10:45] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:10:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:10:45] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:10:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-13' and `tasks`.`due_by` > '2024-06-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:10:49] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:10:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:10:49] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 [7] => 1 ) [2024-06-10 05:10:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:10:49] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:10:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:10:52] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-10 05:10:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-13' and `tasks`.`due_by` > '2024-06-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:10:56] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:10:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:10:56] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 [7] => 1 ) [2024-06-10 05:10:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:10:56] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:11:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:11:12] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:11:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:11:12] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:11:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:11:12] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:11:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:11:17] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:11:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:11:17] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:11:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:11:17] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:11:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:11:23] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:11:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:11:23] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:11:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:11:23] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:11:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-13' and `tasks`.`due_by` > '2024-06-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:29] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:11:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:29] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 [7] => 1 ) [2024-06-10 05:11:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:29] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:11:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:31] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 [7] => 1 ) [2024-06-10 05:11:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:33] local.DEBUG: Values for Sql:Array ( [0] => 279 ) [2024-06-10 05:11:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-13' and `tasks`.`due_by` > '2024-06-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:42] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:11:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:42] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 [7] => 1 ) [2024-06-10 05:11:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:42] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:11:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:51] local.DEBUG: Values for Sql:Array ( [0] => 1 ) [2024-06-10 05:11:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-06-10 05:11:51] local.DEBUG: Values for Sql:Array ( [0] => 0 ) [2024-06-10 05:11:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-13' and `tasks`.`due_by` > '2024-06-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:56] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:11:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:56] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 [7] => 1 ) [2024-06-10 05:11:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:56] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:11:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:11:59] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-10 05:12:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`due_by` <= '2024-06-13' and `tasks`.`due_by` > '2024-06-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:12:02] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:12:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:12:02] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 [7] => 1 ) [2024-06-10 05:12:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:12:02] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:12:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:12:12] local.DEBUG: Values for Sql:Array ( [0] => 1 ) [2024-06-10 05:12:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-06-10 05:12:12] local.DEBUG: Values for Sql:Array ( [0] => 0 ) [2024-06-10 05:12:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-06-10 05:12:15] local.DEBUG: Values for Sql:Array ( [0] => 289 ) [2024-06-10 05:12:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?)) or ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 1 [2024-06-10 05:12:18] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 405 ) [2024-06-10 05:12:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 05:12:18] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 ) [2024-06-10 05:12:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:12:18] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:12:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:12:22] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => -1 ) [2024-06-10 05:12:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:12:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:12:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:12:22] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 1 [9] => 405 [10] => -1 ) [2024-06-10 05:12:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:12:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-10 05:12:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:12:22] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 405 [9] => -1 ) [2024-06-10 05:12:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:12:22] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:12:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-10 05:12:26] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 208 ) [2024-06-10 05:12:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:12:26] local.DEBUG: Values for Sql:Array ( [0] => 208 ) [2024-06-10 05:12:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:12:31] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => -1 ) [2024-06-10 05:12:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:12:31] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:12:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:12:31] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 1 [9] => 405 [10] => -1 ) [2024-06-10 05:12:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:12:31] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-10 05:12:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:12:31] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 405 [9] => -1 ) [2024-06-10 05:12:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:12:31] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:12:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-10 05:12:49] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 120 ) [2024-06-10 05:12:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:12:49] local.DEBUG: Values for Sql:Array ( [0] => 120 ) [2024-06-10 05:12:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:12:53] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => -1 ) [2024-06-10 05:12:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:12:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:12:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:12:53] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 1 [9] => 405 [10] => -1 ) [2024-06-10 05:12:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:12:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-10 05:12:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:12:53] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 405 [9] => -1 ) [2024-06-10 05:12:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:12:53] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:12:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-10 05:12:56] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 171 ) [2024-06-10 05:12:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:12:56] local.DEBUG: Values for Sql:Array ( [0] => 171 ) [2024-06-10 05:13:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:13:01] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => -1 ) [2024-06-10 05:13:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:13:01] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:13:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:13:01] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 1 [9] => 405 [10] => -1 ) [2024-06-10 05:13:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:13:01] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-10 05:13:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:13:01] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 405 [9] => -1 ) [2024-06-10 05:13:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:13:01] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:13:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-10 05:13:13] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 123 ) [2024-06-10 05:13:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:13:13] local.DEBUG: Values for Sql:Array ( [0] => 123 ) [2024-06-10 05:13:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:13:18] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => -1 ) [2024-06-10 05:13:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:13:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:13:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:13:18] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 1 [9] => 405 [10] => -1 ) [2024-06-10 05:13:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:13:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-10 05:13:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:13:18] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 405 [9] => -1 ) [2024-06-10 05:13:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:13:18] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:13:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-10 05:13:21] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 94 ) [2024-06-10 05:13:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:13:21] local.DEBUG: Values for Sql:Array ( [0] => 94 ) [2024-06-10 05:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:13:26] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => -1 ) [2024-06-10 05:13:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:13:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:13:26] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 1 [9] => 405 [10] => -1 ) [2024-06-10 05:13:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:13:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 171 [2] => 94 [3] => 2 ) [2024-06-10 05:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 05:13:26] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 405 [9] => -1 ) [2024-06-10 05:13:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-06-10 05:13:26] local.DEBUG: Values for Sql:Array ( [0] => 208 [1] => 173 [2] => 172 [3] => 171 [4] => 128 [5] => 126 [6] => 125 [7] => 124 [8] => 123 [9] => 122 [10] => 121 [11] => 120 ) [2024-06-10 05:13:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-10 05:13:32] local.DEBUG: Values for Sql:Array ( [0] => 336 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 405 [8] => 171 ) [2024-06-10 05:13:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-06-10 05:13:32] local.DEBUG: Values for Sql:Array ( [0] => 171 ) [2024-06-10 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-10 17:31:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-10 17:31:58] local.DEBUG: Values for Sql:Array ( [0] => 119 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-10 17:31:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-10 17:31:58] local.DEBUG: Values for Sql:Array ( [0] => 119 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-10 23:10:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 23:10:01] local.DEBUG: Values for Sql:Array ( [0] => 168 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 219 ) [2024-06-10 23:10:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 23:10:28] local.DEBUG: Values for Sql:Array ( [0] => 168 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 219 ) [2024-06-10 23:10:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 23:10:54] local.DEBUG: Values for Sql:Array ( [0] => 168 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 219 [8] => -1 ) [2024-06-10 23:10:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 23:10:54] local.DEBUG: Values for Sql:Array ( [0] => 168 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 219 [8] => 1 [9] => 219 [10] => -1 ) [2024-06-10 23:10:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 23:10:54] local.DEBUG: Values for Sql:Array ( [0] => 168 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 219 [8] => 219 [9] => -1 ) [2024-06-10 23:11:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-10 23:11:03] local.DEBUG: Values for Sql:Array ( [0] => 168 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 219 [8] => 171 ) [2024-06-10 23:11:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 23:11:05] local.DEBUG: Values for Sql:Array ( [0] => 168 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 219 [8] => -1 ) [2024-06-10 23:11:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 23:11:05] local.DEBUG: Values for Sql:Array ( [0] => 168 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 219 [8] => 1 [9] => 219 [10] => -1 ) [2024-06-10 23:11:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-10 23:11:05] local.DEBUG: Values for Sql:Array ( [0] => 168 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 219 [8] => 219 [9] => -1 ) [2024-06-10 23:11:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 23:11:21] local.DEBUG: Values for Sql:Array ( [0] => 168 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 219 ) [2024-06-10 23:24:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-10 23:24:08] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 ) [2024-06-11 01:47:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-11 01:47:01] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-11 07:05:03] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-11 12:39:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 12:39:04] local.DEBUG: Values for Sql:Array ( [0] => 177 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 228 [8] => -1 ) [2024-06-11 12:39:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 12:39:05] local.DEBUG: Values for Sql:Array ( [0] => 177 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 228 [8] => 1 [9] => 228 [10] => -1 ) [2024-06-11 12:39:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 12:39:05] local.DEBUG: Values for Sql:Array ( [0] => 177 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 228 [8] => 228 [9] => -1 ) [2024-06-11 12:39:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-11 12:39:39] local.DEBUG: Values for Sql:Array ( [0] => 177 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 228 ) [2024-06-11 15:04:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-11 15:04:36] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 ) [2024-06-11 15:05:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:05:01] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => -1 ) [2024-06-11 15:05:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:05:02] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 1 [9] => 189 [10] => -1 ) [2024-06-11 15:05:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:05:02] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 189 [9] => -1 ) [2024-06-11 15:05:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:05:43] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => -1 ) [2024-06-11 15:05:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:05:44] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 1 [9] => 189 [10] => -1 ) [2024-06-11 15:05:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:05:44] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 189 [9] => -1 ) [2024-06-11 15:33:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-11 15:33:35] local.DEBUG: Values for Sql:Array ( [0] => 116 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 170 ) [2024-06-11 15:34:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-11 15:34:48] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-11 15:34:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-11 15:34:48] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-11 15:35:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-11 15:35:25] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-11 15:35:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-11 15:35:31] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-11 15:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:35:35] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-11 15:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:35:35] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-11 15:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:35:35] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-11 15:35:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-11 15:35:41] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 172 ) [2024-06-11 15:35:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-11 15:35:52] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-11 15:36:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:36:34] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-11 15:36:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:36:34] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-11 15:36:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:36:34] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-11 15:38:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-11 15:38:07] local.DEBUG: Values for Sql:Array ( [0] => 260 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 321 ) [2024-06-11 15:39:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:39:53] local.DEBUG: Values for Sql:Array ( [0] => 260 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 321 [8] => -1 ) [2024-06-11 15:39:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:39:53] local.DEBUG: Values for Sql:Array ( [0] => 260 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 321 [8] => 1 [9] => 321 [10] => -1 ) [2024-06-11 15:39:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-11 15:39:53] local.DEBUG: Values for Sql:Array ( [0] => 260 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 321 [8] => 321 [9] => -1 ) [2024-06-11 22:56:43] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-11 22:56:44] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-12 02:14:54] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-12 02:14:54] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-12 02:25:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 02:25:51] local.DEBUG: Values for Sql:Array ( [0] => 329 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 395 ) [2024-06-12 02:26:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 02:26:04] local.DEBUG: Values for Sql:Array ( [0] => 329 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 395 ) [2024-06-12 02:30:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 02:30:48] local.DEBUG: Values for Sql:Array ( [0] => 143 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 196 [8] => -1 ) [2024-06-12 02:30:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 02:30:48] local.DEBUG: Values for Sql:Array ( [0] => 143 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 196 [8] => 1 [9] => 196 [10] => -1 ) [2024-06-12 02:30:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 02:30:48] local.DEBUG: Values for Sql:Array ( [0] => 143 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 196 [8] => 196 [9] => -1 ) [2024-06-12 02:30:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 02:30:48] local.DEBUG: Values for Sql:Array ( [0] => 143 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 196 [8] => -1 ) [2024-06-12 02:30:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 02:30:48] local.DEBUG: Values for Sql:Array ( [0] => 143 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 196 [8] => 1 [9] => 196 [10] => -1 ) [2024-06-12 02:30:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 02:30:48] local.DEBUG: Values for Sql:Array ( [0] => 143 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 196 [8] => 196 [9] => -1 ) [2024-06-12 02:36:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 02:36:13] local.DEBUG: Values for Sql:Array ( [0] => 184 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 235 ) [2024-06-12 02:36:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 02:36:13] local.DEBUG: Values for Sql:Array ( [0] => 184 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 235 ) [2024-06-12 02:36:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 02:36:47] local.DEBUG: Values for Sql:Array ( [0] => 184 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 235 ) [2024-06-12 02:36:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 02:36:47] local.DEBUG: Values for Sql:Array ( [0] => 184 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 235 ) [2024-06-12 02:37:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 02:37:01] local.DEBUG: Values for Sql:Array ( [0] => 184 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 235 ) [2024-06-12 02:37:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 02:37:03] local.DEBUG: Values for Sql:Array ( [0] => 184 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 235 [8] => -1 ) [2024-06-12 02:37:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 02:37:03] local.DEBUG: Values for Sql:Array ( [0] => 184 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 235 [8] => 1 [9] => 235 [10] => -1 ) [2024-06-12 02:37:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 02:37:03] local.DEBUG: Values for Sql:Array ( [0] => 184 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 235 [8] => 235 [9] => -1 ) [2024-06-12 02:37:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 02:37:44] local.DEBUG: Values for Sql:Array ( [0] => 184 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 235 ) [2024-06-12 02:37:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 02:37:45] local.DEBUG: Values for Sql:Array ( [0] => 184 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 235 ) [2024-06-12 04:03:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 04:03:31] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => -1 ) [2024-06-12 04:03:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 04:03:31] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => 1 [9] => 252 [10] => -1 ) [2024-06-12 04:03:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 04:03:31] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => 252 [9] => -1 ) [2024-06-12 04:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 04:03:50] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 ) [2024-06-12 05:49:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 05:49:03] local.DEBUG: Values for Sql:Array ( [0] => 214 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 270 ) [2024-06-12 06:09:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 06:09:16] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 317 ) [2024-06-12 06:09:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 06:09:16] local.DEBUG: Values for Sql:Array ( [0] => 256 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 317 ) [2024-06-12 06:54:44] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"anmol.k13@gmail.com","name":"Anmol Kumar"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Anmol Kumar,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">48267<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-12 06:54:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.a67985e0-2888-11ef-8c69-525400fa05f6.1900b3a3d3e","object":"email"} [2024-06-12 06:55:35] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 406 [2024-06-12 06:55:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 06:55:50] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 06:56:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 06:56:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 406 [8] => -1 ) [2024-06-12 06:56:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 06:56:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 406 [8] => 1 [9] => 406 [10] => -1 ) [2024-06-12 06:56:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 06:56:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 406 [8] => 406 [9] => -1 ) [2024-06-12 06:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 06:56:19] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 06:56:49] local.DEBUG: Review Not allowed for UserId: 406 for ClaimId:32, Reason: User is not the owner of the group [2024-06-12 06:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 06:56:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 06:56:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 06:56:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 406 [8] => -1 ) [2024-06-12 06:56:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 06:56:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 406 [8] => 1 [9] => 406 [10] => -1 ) [2024-06-12 06:56:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 06:56:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 406 [8] => 406 [9] => -1 ) [2024-06-12 06:56:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 06:56:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 06:58:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 06:58:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 06:58:21] local.DEBUG: task visible_to: [2024-06-12 07:04:33] local.DEBUG: task visible_to: [2024-06-12 07:04:33] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-06-12 07:04:33] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 93 [2024-06-12 07:04:33] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"aman@coinsforcollege.org","name":"Aman"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Aman,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Clean Bathroom<\\/li>\\n <li><strong>Assigned To:<\\/strong> Anmol Kumar<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-12 07:04:33] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.05aa4ee0-288a-11ef-8db7-525400d6cd4f.1900b433ace","object":"email"} [2024-06-12 07:04:35] local.DEBUG: task visible_to: [2024-06-12 07:04:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 07:04:45] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-12 07:05:03] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (312, 306, 220, PENDING, ?, ?, ?, 2024-06-12 07:05:03, 2024-06-12 07:05:03)) [2024-06-12 07:05:03] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(487): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(431): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-06-12 07:05:21] local.DEBUG: Review Not allowed for UserId: 406 for ClaimId:39, Reason: User is not the owner of the group [2024-06-12 07:05:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 07:05:36] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 07:05:47] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-12 07:05:59] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-12 08:02:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-12 08:02:59] local.DEBUG: Values for Sql:Array ( [0] => 285 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 348 ) [2024-06-12 13:07:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 13:07:39] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 13:07:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 13:07:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-12 13:07:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-12 13:07:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 13:07:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 13:07:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 13:08:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 13:08:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-12 13:08:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-12 13:08:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 13:08:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 13:08:20] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 15:00:49] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"vr69321@gmail.com","name":"Vignesh R"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Vignesh R,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">76408<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-12 15:00:50] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8e989b20-28cc-11ef-8db7-525400d6cd4f.1900cf745d2","object":"email"} [2024-06-12 15:01:17] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 407 [2024-06-12 15:01:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 15:01:30] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 15:02:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-12 15:02:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-12 15:02:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-12 15:02:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-12 15:02:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-12 15:02:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-13 00:16:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-13 00:16:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-13 00:16:18] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 ) [2024-06-13 00:16:18] local.DEBUG: Values for Sql:Array ( [0] => 144 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 197 ) [2024-06-13 01:23:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-13 01:23:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-13 01:23:28] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 ) [2024-06-13 01:23:28] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 ) [2024-06-13 01:23:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-13 01:23:41] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 ) [2024-06-13 01:23:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 01:23:51] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 [8] => -1 ) [2024-06-13 01:23:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 01:23:51] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 [8] => 1 [9] => 279 [10] => -1 ) [2024-06-13 01:23:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 01:23:51] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 [8] => 279 [9] => -1 ) [2024-06-13 01:24:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-13 01:24:10] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 ) [2024-06-13 01:24:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-13 01:24:11] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 ) [2024-06-13 01:24:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-13 01:24:13] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 ) [2024-06-13 01:24:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-13 01:24:17] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 [8] => 115 ) [2024-06-13 01:24:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-13 01:24:36] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 ) [2024-06-13 01:24:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 01:24:44] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 [8] => -1 ) [2024-06-13 01:24:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 01:24:44] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 [8] => 1 [9] => 279 [10] => -1 ) [2024-06-13 01:24:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 01:24:44] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 [8] => 279 [9] => -1 ) [2024-06-13 01:24:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-13 01:24:58] local.DEBUG: Values for Sql:Array ( [0] => 222 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 279 ) [2024-06-13 02:40:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-13 02:40:16] local.DEBUG: Values for Sql:Array ( [0] => 250 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 309 ) [2024-06-13 07:04:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-13 07:04:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-13 07:04:26] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-13 07:04:26] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-13 07:04:31] local.DEBUG: Review Not allowed for UserId: 406 for ClaimId:39, Reason: User is not the owner of the group [2024-06-13 07:04:34] local.DEBUG: Review Not allowed for UserId: 406 for ClaimId:32, Reason: User is not the owner of the group [2024-06-13 07:04:37] local.DEBUG: Review Not allowed for UserId: 406 for ClaimId:31, Reason: User is not the owner of the group [2024-06-13 07:04:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-13 07:04:44] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-13 07:04:55] local.DEBUG: task visible_to: [2024-06-13 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-13 07:05:05] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-13 07:08:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-13 07:08:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-13 07:08:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-13 07:08:20] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-13 23:45:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-13 23:45:21] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 ) [2024-06-13 23:45:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 23:45:35] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 [8] => -1 ) [2024-06-13 23:45:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 23:45:35] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 [8] => 1 [9] => 245 [10] => -1 ) [2024-06-13 23:45:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 23:45:35] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 [8] => 245 [9] => -1 ) [2024-06-13 23:45:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-13 23:45:53] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 [8] => 208 ) [2024-06-13 23:46:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 23:46:14] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 [8] => -1 ) [2024-06-13 23:46:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 23:46:14] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 [8] => 1 [9] => 245 [10] => -1 ) [2024-06-13 23:46:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 23:46:14] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 [8] => 245 [9] => -1 ) [2024-06-13 23:46:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 23:46:34] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 [8] => -1 ) [2024-06-13 23:46:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 23:46:34] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 [8] => 1 [9] => 245 [10] => -1 ) [2024-06-13 23:46:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-13 23:46:34] local.DEBUG: Values for Sql:Array ( [0] => 194 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 245 [8] => 245 [9] => -1 ) [2024-06-14 05:07:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-14 05:07:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-14 06:42:26] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-14 06:42:26] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-14 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-14 17:20:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-14 17:20:06] local.DEBUG: Values for Sql:Array ( [0] => 263 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 324 ) [2024-06-14 23:36:59] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-15 00:26:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-15 00:26:51] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 ) [2024-06-15 06:04:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-15 06:04:34] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 ) [2024-06-15 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-15 19:38:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-15 19:38:22] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-06-15 19:38:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-15 19:38:51] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-06-16 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-16 08:15:18] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"vakweeks@gmail.com","name":"Victor-Alan"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Victor-Alan,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">32945<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-16 08:15:24] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.94c3c710-2bb8-11ef-9f9c-52540064429e.190201d8601","object":"email"} [2024-06-16 08:15:55] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 408 [2024-06-16 08:16:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-16 08:16:17] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-16 08:18:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-16 08:18:45] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-16 08:18:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-16 08:18:45] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-16 08:18:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-16 08:18:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 208 ) [2024-06-16 08:18:52] local.DEBUG: Current Balance: 0 [2024-06-16 08:19:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-16 08:19:22] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-16 08:19:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-16 08:19:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-16 08:19:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-16 08:19:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-16 08:19:51] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-16 08:20:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-16 08:20:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 201 ) [2024-06-16 08:20:03] local.DEBUG: Current Balance: 0 [2024-06-16 08:20:10] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-16 08:22:38] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-16 08:22:38] local.DEBUG: task is not assigned to user, but it is visible, so creating new assignment [2024-06-16 08:22:38] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"vakweeks@gmail.com","name":"Victor-Alan"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Victor-Alan,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Learn Newton's third law<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-16 08:22:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.97d0c380-2bb9-11ef-b7c2-525400cbcb5e.190202427b8","object":"email"} [2024-06-16 08:22:38] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 93 [2024-06-16 08:22:38] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"aman@coinsforcollege.org","name":"Aman"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Aman,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Learn Newton's third law<\\/li>\\n <li><strong>Assigned To:<\\/strong> Victor-Alan<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-16 08:22:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.980281e0-2bb9-11ef-a63f-525400e18d05.190202428fe","object":"email"} [2024-06-16 08:22:39] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-16 08:22:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-16 08:22:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-16 08:29:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-16 08:29:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-16 18:36:35] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-16 19:14:41] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-16 19:28:58] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-16 19:28:58] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-16 20:59:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-16 20:59:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-16 20:59:32] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 ) [2024-06-16 20:59:32] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 ) [2024-06-16 21:01:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-16 21:01:24] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-16 21:01:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-16 21:01:52] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-16 21:02:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-16 21:02:36] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-16 21:21:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-16 21:21:02] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-16 21:21:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-16 21:21:02] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-16 22:40:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-16 22:40:41] local.DEBUG: Values for Sql:Array ( [0] => 337 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 409 ) [2024-06-17 00:36:27] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-17 00:36:27] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-17 03:59:26] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-17 03:59:27] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-17 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-18 05:19:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-18 05:19:29] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 ) [2024-06-18 05:19:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-18 05:19:40] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 [8] => -1 ) [2024-06-18 05:19:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-18 05:19:40] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 [8] => 1 [9] => 410 [10] => -1 ) [2024-06-18 05:19:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-18 05:19:40] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 [8] => 410 [9] => -1 ) [2024-06-18 05:19:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-18 05:19:59] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 ) [2024-06-18 05:20:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-18 05:20:57] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 ) [2024-06-18 05:21:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-18 05:21:00] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 [8] => -1 ) [2024-06-18 05:21:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-18 05:21:00] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 [8] => 1 [9] => 410 [10] => -1 ) [2024-06-18 05:21:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-18 05:21:00] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 [8] => 410 [9] => -1 ) [2024-06-18 05:21:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-18 05:21:03] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 ) [2024-06-18 05:21:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-18 05:21:21] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 ) [2024-06-18 05:21:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-18 05:21:25] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 [8] => -1 ) [2024-06-18 05:21:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-18 05:21:25] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 [8] => 1 [9] => 410 [10] => -1 ) [2024-06-18 05:21:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-18 05:21:25] local.DEBUG: Values for Sql:Array ( [0] => 338 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 410 [8] => 410 [9] => -1 ) [2024-06-18 05:55:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-18 05:55:08] local.DEBUG: Values for Sql:Array ( [0] => 199 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 250 ) [2024-06-18 06:28:52] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-18 06:28:54] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-18 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-19 07:05:03] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-19 07:05:03] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (312, 307, 220, PENDING, ?, ?, ?, 2024-06-19 07:05:03, 2024-06-19 07:05:03)) [2024-06-19 07:05:03] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(487): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(431): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-06-19 07:49:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 07:49:32] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 ) [2024-06-19 07:49:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 07:49:49] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 ) [2024-06-19 07:50:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 07:50:03] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 [8] => -1 ) [2024-06-19 07:50:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 07:50:03] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 [8] => 1 [9] => 344 [10] => -1 ) [2024-06-19 07:50:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 07:50:03] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 [8] => 344 [9] => -1 ) [2024-06-19 07:50:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 07:50:10] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 ) [2024-06-19 07:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 07:50:13] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 [8] => -1 ) [2024-06-19 07:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 07:50:13] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 [8] => 1 [9] => 344 [10] => -1 ) [2024-06-19 07:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 07:50:13] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 [8] => 344 [9] => -1 ) [2024-06-19 07:50:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 07:50:31] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 ) [2024-06-19 07:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 07:50:35] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 ) [2024-06-19 07:50:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 07:50:39] local.DEBUG: Values for Sql:Array ( [0] => 281 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 344 ) [2024-06-19 11:01:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 11:01:28] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 ) [2024-06-19 11:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 11:01:50] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => 1 [error_message] => mobile is not valid ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => 1 [error_message] => mobile is a required field ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: regex patter: /^.+$/ [2024-06-19 11:02:04] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:04] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-19 11:02:04] local.DEBUG: Validation Result: [2024-06-19 11:02:14] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:14] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:15] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:15] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:16] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:17] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 11:02:17] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => -1 ) [2024-06-19 11:02:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 11:02:17] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => 1 [9] => 389 [10] => -1 ) [2024-06-19 11:02:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 11:02:17] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 [8] => 389 [9] => -1 ) [2024-06-19 11:02:17] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:18] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:18] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:19] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:19] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:20] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:20] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:21] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:22] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:22] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:23] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:23] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:24] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 11:02:24] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 ) [2024-06-19 11:02:24] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:02:25] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'full_name is required field' , CONCAT( validate_errors, ', ', 'full_name is required field') ) WHERE full_name IS NULL OR TRIM(full_name) = '' [2024-06-19 11:02:25] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'profile_pic_url is not valid' , CONCAT( validate_errors, ', ', 'profile_pic_url is not valid') ) WHERE NOT (LENGTH(profile_pic_url) BETWEEN 3 AND 2048 AND profile_pic_url REGEXP '^.+$') [2024-06-19 11:02:25] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is not valid' , CONCAT( validate_errors, ', ', 'email is not valid') ) WHERE NOT (LENGTH(email) BETWEEN 0 AND 255 AND email REGEXP '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$') [2024-06-19 11:02:25] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is required field' , CONCAT( validate_errors, ', ', 'email is required field') ) WHERE email IS NULL OR TRIM(email) = '' [2024-06-19 11:02:25] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is not valid' , CONCAT( validate_errors, ', ', 'mobile is not valid') ) WHERE NOT (LENGTH(mobile) BETWEEN 0 AND 255 AND mobile REGEXP '^\+?[0-9]{8,15}$') [2024-06-19 11:02:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 11:02:35] local.DEBUG: Values for Sql:Array ( [0] => 322 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 389 ) [2024-06-19 11:08:35] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:36] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:36] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:37] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:37] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:38] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:38] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:39] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:40] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:40] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:41] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:41] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:42] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:42] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:43] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:44] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:44] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:45] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:45] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:46] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:08:46] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'full_name is required field' , CONCAT( validate_errors, ', ', 'full_name is required field') ) WHERE full_name IS NULL OR TRIM(full_name) = '' [2024-06-19 11:08:46] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'profile_pic_url is not valid' , CONCAT( validate_errors, ', ', 'profile_pic_url is not valid') ) WHERE NOT (LENGTH(profile_pic_url) BETWEEN 3 AND 2048 AND profile_pic_url REGEXP '^.+$') [2024-06-19 11:08:46] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is not valid' , CONCAT( validate_errors, ', ', 'email is not valid') ) WHERE NOT (LENGTH(email) BETWEEN 0 AND 255 AND email REGEXP '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$') [2024-06-19 11:08:46] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is required field' , CONCAT( validate_errors, ', ', 'email is required field') ) WHERE email IS NULL OR TRIM(email) = '' [2024-06-19 11:08:46] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is not valid' , CONCAT( validate_errors, ', ', 'mobile is not valid') ) WHERE NOT (LENGTH(mobile) BETWEEN 0 AND 255 AND mobile REGEXP '\+?[0-9]{8,15}') [2024-06-19 11:10:57] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:10:57] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:10:58] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:10:59] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:10:59] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:00] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:00] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:01] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:02] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:02] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:03] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:03] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:04] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:04] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:05] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:06] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:06] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:07] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:07] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:08] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:08] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'full_name is required field' , CONCAT( validate_errors, ', ', 'full_name is required field') ) WHERE full_name IS NULL OR TRIM(full_name) = '' [2024-06-19 11:11:08] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'profile_pic_url is not valid' , CONCAT( validate_errors, ', ', 'profile_pic_url is not valid') ) WHERE NOT (LENGTH(profile_pic_url) BETWEEN 3 AND 2048 AND profile_pic_url REGEXP '^.+$') [2024-06-19 11:11:08] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is not valid' , CONCAT( validate_errors, ', ', 'email is not valid') ) WHERE NOT (LENGTH(email) BETWEEN 0 AND 255 AND email REGEXP '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$') [2024-06-19 11:11:08] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is required field' , CONCAT( validate_errors, ', ', 'email is required field') ) WHERE email IS NULL OR TRIM(email) = '' [2024-06-19 11:11:08] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is not valid' , CONCAT( validate_errors, ', ', 'mobile is not valid') ) WHERE NOT (LENGTH(mobile) BETWEEN 0 AND 255 AND mobile REGEXP '\+?[0-9]{8,15}') [2024-06-19 11:11:41] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:41] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:42] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:42] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:43] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:44] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:44] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:45] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:45] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:46] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:46] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:47] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:47] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:48] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:49] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:49] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:50] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:50] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:51] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:51] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:11:52] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'full_name is required field' , CONCAT( validate_errors, ', ', 'full_name is required field') ) WHERE full_name IS NULL OR TRIM(full_name) = '' [2024-06-19 11:11:52] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'profile_pic_url is not valid' , CONCAT( validate_errors, ', ', 'profile_pic_url is not valid') ) WHERE NOT (LENGTH(profile_pic_url) BETWEEN 3 AND 2048 AND profile_pic_url REGEXP '^.+$') [2024-06-19 11:11:52] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is not valid' , CONCAT( validate_errors, ', ', 'email is not valid') ) WHERE NOT (LENGTH(email) BETWEEN 0 AND 255 AND email REGEXP '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$') [2024-06-19 11:11:52] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is required field' , CONCAT( validate_errors, ', ', 'email is required field') ) WHERE email IS NULL OR TRIM(email) = '' [2024-06-19 11:11:52] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is not valid' , CONCAT( validate_errors, ', ', 'mobile is not valid') ) WHERE NOT (LENGTH(mobile) BETWEEN 0 AND 255 AND mobile REGEXP '^\+?[0-9]{8,15}$') [2024-06-19 11:21:34] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:34] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:35] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:35] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:36] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:36] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:37] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:38] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:38] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:39] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:39] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:40] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:40] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:41] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:42] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:42] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:43] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:43] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:44] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:44] local.DEBUG: File to download: Array ( [url] => https://st3.depositphotos.com/15648834/17930/v/450/depositphotos_179308454-stock-illustration-unknown-person-silhouette-glasses-profile.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'full_name is required field' , CONCAT( validate_errors, ', ', 'full_name is required field') ) WHERE full_name IS NULL OR TRIM(full_name) = '' [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'profile_pic_url is not valid' , CONCAT( validate_errors, ', ', 'profile_pic_url is not valid') ) WHERE NOT (LENGTH(profile_pic_url) BETWEEN 3 AND 2048 AND profile_pic_url REGEXP '^.+$') [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is not valid' , CONCAT( validate_errors, ', ', 'email is not valid') ) WHERE NOT (LENGTH(email) BETWEEN 0 AND 255 AND email REGEXP '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$') [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is required field' , CONCAT( validate_errors, ', ', 'email is required field') ) WHERE email IS NULL OR TRIM(email) = '' [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is not valid' , CONCAT( validate_errors, ', ', 'mobile is not valid') ) WHERE NOT (LENGTH(mobile) BETWEEN 0 AND 255 AND mobile REGEXP '^[0-9]{8,15}$') [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is required field' , CONCAT( validate_errors, ', ', 'mobile is required field') ) WHERE mobile IS NULL OR TRIM(mobile) = '' [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'password is not valid' , CONCAT( validate_errors, ', ', 'password is not valid') ) WHERE NOT (LENGTH(password) BETWEEN 0 AND 255 AND password REGEXP '^.+$') [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'password is required field' , CONCAT( validate_errors, ', ', 'password is required field') ) WHERE password IS NULL OR TRIM(password) = '' [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'user_role is required field' , CONCAT( validate_errors, ', ', 'user_role is required field') ) WHERE user_role IS NULL OR TRIM(user_role) = '' [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'group_uuid is required field' , CONCAT( validate_errors, ', ', 'group_uuid is required field') ) WHERE group_uuid IS NULL OR TRIM(group_uuid) = '' [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'country_name is required field' , CONCAT( validate_errors, ', ', 'country_name is required field') ) WHERE country_name IS NULL OR TRIM(country_name) = '' [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'zipcode is required field' , CONCAT( validate_errors, ', ', 'zipcode is required field') ) WHERE zipcode IS NULL OR TRIM(zipcode) = '' [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 AS tmp JOIN users AS u ON u.mobile = tmp.mobile SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user already present with mobile' , CONCAT( tmp.validate_errors, ', ', 'user already present with mobile') ) WHERE u.deleted_at IS NULL [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 AS tmp JOIN users AS u ON u.email = tmp.email SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user already present with email' , CONCAT( tmp.validate_errors, ', ', 'user already present with email') ) WHERE u.deleted_at IS NULL [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 AS tmp LEFT JOIN coins_for_college_roles AS r ON r.role_name = tmp.user_role SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user_role not found' , CONCAT( tmp.validate_errors, ', ', 'user_role not found') ) WHERE r.coins_for_college_role_id IS NULL AND r.deleted_at IS NULL [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 AS tmp LEFT JOIN coins_for_college_roles AS r ON r.role_name = tmp.user_role SET tmp.coins_for_college_role_id = r.coins_for_college_role_id WHERE r.coins_for_college_role_id IS NOT NULL AND r.deleted_at IS NULL [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-19 11:21:45] local.DEBUG: Running Update Query: UPDATE temp_6672baac9b3c1 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-19 15:47:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 15:47:08] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 ) [2024-06-19 15:47:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:47:55] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => -1 ) [2024-06-19 15:47:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:47:55] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 1 [9] => 189 [10] => -1 ) [2024-06-19 15:47:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:47:55] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 189 [9] => -1 ) [2024-06-19 15:48:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 15:48:06] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 ) [2024-06-19 15:48:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:48:09] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => -1 ) [2024-06-19 15:48:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:48:09] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 1 [9] => 189 [10] => -1 ) [2024-06-19 15:48:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:48:09] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 189 [9] => -1 ) [2024-06-19 15:48:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:48:36] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => -1 ) [2024-06-19 15:48:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:48:36] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 1 [9] => 189 [10] => -1 ) [2024-06-19 15:48:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:48:36] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 189 [9] => -1 ) [2024-06-19 15:48:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 15:48:39] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 ) [2024-06-19 15:48:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:48:51] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => -1 ) [2024-06-19 15:48:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:48:51] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 1 [9] => 189 [10] => -1 ) [2024-06-19 15:48:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 15:48:51] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 [8] => 189 [9] => -1 ) [2024-06-19 15:51:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 15:51:03] local.DEBUG: Values for Sql:Array ( [0] => 138 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 189 ) [2024-06-19 16:50:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 16:50:40] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 ) [2024-06-19 16:50:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:50:51] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => -1 ) [2024-06-19 16:50:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:50:51] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => 1 [9] => 411 [10] => -1 ) [2024-06-19 16:50:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:50:51] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => 411 [9] => -1 ) [2024-06-19 16:51:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 16:51:06] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 ) [2024-06-19 16:51:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:51:23] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => -1 ) [2024-06-19 16:51:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:51:23] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => 1 [9] => 411 [10] => -1 ) [2024-06-19 16:51:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:51:23] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => 411 [9] => -1 ) [2024-06-19 16:52:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 16:52:01] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 ) [2024-06-19 16:52:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 16:52:37] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 ) [2024-06-19 16:52:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:52:40] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => -1 ) [2024-06-19 16:52:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:52:40] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => 1 [9] => 411 [10] => -1 ) [2024-06-19 16:52:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:52:40] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => 411 [9] => -1 ) [2024-06-19 16:53:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:53:52] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => -1 ) [2024-06-19 16:53:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:53:53] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => 1 [9] => 411 [10] => -1 ) [2024-06-19 16:53:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-19 16:53:53] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 [8] => 411 [9] => -1 ) [2024-06-19 16:56:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 16:56:45] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 411 ) [2024-06-19 19:34:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 19:34:27] local.DEBUG: Values for Sql:Array ( [0] => 258 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 319 ) [2024-06-19 19:34:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 19:34:27] local.DEBUG: Values for Sql:Array ( [0] => 258 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 319 ) [2024-06-19 19:34:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-19 19:34:45] local.DEBUG: Values for Sql:Array ( [0] => 258 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 319 ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-20 03:22:03] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-20 03:22:03] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => 1 [error_message] => email is not valid ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-20 03:22:03] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => 1 [error_message] => mobile is not valid ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-20 03:22:03] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-20 03:22:03] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-20 03:22:03] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-20 03:22:03] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-20 03:22:03] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-20 03:22:03] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-20 03:22:03] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-20 03:22:03] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-20 03:22:03] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:22:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-20 03:22:03] local.DEBUG: Validation Result: [2024-06-20 03:22:09] local.DEBUG: File to download: Array ( [url] => http://example.com/profile1.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-20 03:22:19] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10000 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/profile1.jpg [2024-06-20 03:22:19] local.DEBUG: File to download: Array ( [url] => http://example.com/profile2.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-20 03:22:29] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10000 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/profile2.jpg [2024-06-20 03:22:29] local.DEBUG: File to download: Array ( [url] => http://example.com/profile3.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-20 03:22:39] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10000 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/profile3.jpg [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'full_name is required field' , CONCAT( validate_errors, ', ', 'full_name is required field') ) WHERE full_name IS NULL OR TRIM(full_name) = '' [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'profile_pic_url is not valid' , CONCAT( validate_errors, ', ', 'profile_pic_url is not valid') ) WHERE NOT (LENGTH(profile_pic_url) BETWEEN 3 AND 2048 AND profile_pic_url REGEXP '^.+$') [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is not valid' , CONCAT( validate_errors, ', ', 'email is not valid') ) WHERE NOT (LENGTH(email) BETWEEN 0 AND 255 AND email REGEXP '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$') [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is required field' , CONCAT( validate_errors, ', ', 'email is required field') ) WHERE email IS NULL OR TRIM(email) = '' [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is not valid' , CONCAT( validate_errors, ', ', 'mobile is not valid') ) WHERE NOT (LENGTH(mobile) BETWEEN 0 AND 255 AND mobile REGEXP '^[0-9]{8,15}$') [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is required field' , CONCAT( validate_errors, ', ', 'mobile is required field') ) WHERE mobile IS NULL OR TRIM(mobile) = '' [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'password is not valid' , CONCAT( validate_errors, ', ', 'password is not valid') ) WHERE NOT (LENGTH(password) BETWEEN 0 AND 255 AND password REGEXP '^.+$') [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'password is required field' , CONCAT( validate_errors, ', ', 'password is required field') ) WHERE password IS NULL OR TRIM(password) = '' [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'user_role is required field' , CONCAT( validate_errors, ', ', 'user_role is required field') ) WHERE user_role IS NULL OR TRIM(user_role) = '' [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'group_uuid is required field' , CONCAT( validate_errors, ', ', 'group_uuid is required field') ) WHERE group_uuid IS NULL OR TRIM(group_uuid) = '' [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'country_name is required field' , CONCAT( validate_errors, ', ', 'country_name is required field') ) WHERE country_name IS NULL OR TRIM(country_name) = '' [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'zipcode is required field' , CONCAT( validate_errors, ', ', 'zipcode is required field') ) WHERE zipcode IS NULL OR TRIM(zipcode) = '' [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 AS tmp JOIN users AS u ON u.mobile = tmp.mobile SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user already present with mobile' , CONCAT( tmp.validate_errors, ', ', 'user already present with mobile') ) WHERE u.deleted_at IS NULL [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 AS tmp JOIN users AS u ON u.email = tmp.email SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user already present with email' , CONCAT( tmp.validate_errors, ', ', 'user already present with email') ) WHERE u.deleted_at IS NULL [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 AS tmp LEFT JOIN coins_for_college_roles AS r ON r.role_name = tmp.user_role SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user_role not found' , CONCAT( tmp.validate_errors, ', ', 'user_role not found') ) WHERE r.coins_for_college_role_id IS NULL AND r.deleted_at IS NULL [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 AS tmp LEFT JOIN coins_for_college_roles AS r ON r.role_name = tmp.user_role SET tmp.coins_for_college_role_id = r.coins_for_college_role_id WHERE r.coins_for_college_role_id IS NOT NULL AND r.deleted_at IS NULL [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-20 03:22:39] local.DEBUG: Running Update Query: UPDATE temp_6673a05b3eae3 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-20 03:29:17] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-20 03:29:17] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => 1 [error_message] => email is not valid ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-20 03:29:17] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => 1 [error_message] => mobile is not valid ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-20 03:29:17] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-20 03:29:17] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-20 03:29:17] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-20 03:29:17] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-20 03:29:17] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: full_name [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: profile_pic_url [2024-06-20 03:29:17] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: email [2024-06-20 03:29:17] local.DEBUG: regex patter: /^[\w\.-]+@[\w\.-]+\.\w+$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: email [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: mobile [2024-06-20 03:29:17] local.DEBUG: regex patter: /^\+?\d{10,15}$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: mobile [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: password [2024-06-20 03:29:17] local.DEBUG: regex patter: /^.+$/ [2024-06-20 03:29:17] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: password [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: USER_ROLE for Field: user_role [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: user_role [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: GROUP_UUID for Field: group_uuid [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: group_uuid [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: country_name [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:17] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: zipcode [2024-06-20 03:29:17] local.DEBUG: Validation Result: [2024-06-20 03:29:25] local.DEBUG: File to download: Array ( [url] => https://coinsforcollege.org/admin/public/profile_pics/19459837311718853973.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-20 03:29:25] local.DEBUG: File to download: Array ( [url] => https://coinsforcollege.org/admin/public/profile_pics/19459837311718853973.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-20 03:29:25] local.DEBUG: File to download: Array ( [url] => https://coinsforcollege.org/admin/public/profile_pics/19459837311718853973.jpg [target_folder] => profile_pics [default_file_url] => default-profile-image-color.jpg ) [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'full_name is required field' , CONCAT( validate_errors, ', ', 'full_name is required field') ) WHERE full_name IS NULL OR TRIM(full_name) = '' [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'profile_pic_url is not valid' , CONCAT( validate_errors, ', ', 'profile_pic_url is not valid') ) WHERE NOT (LENGTH(profile_pic_url) BETWEEN 3 AND 2048 AND profile_pic_url REGEXP '^.+$') [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is not valid' , CONCAT( validate_errors, ', ', 'email is not valid') ) WHERE NOT (LENGTH(email) BETWEEN 0 AND 255 AND email REGEXP '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$') [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is required field' , CONCAT( validate_errors, ', ', 'email is required field') ) WHERE email IS NULL OR TRIM(email) = '' [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is not valid' , CONCAT( validate_errors, ', ', 'mobile is not valid') ) WHERE NOT (LENGTH(mobile) BETWEEN 0 AND 255 AND mobile REGEXP '^[0-9]{8,15}$') [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is required field' , CONCAT( validate_errors, ', ', 'mobile is required field') ) WHERE mobile IS NULL OR TRIM(mobile) = '' [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'password is not valid' , CONCAT( validate_errors, ', ', 'password is not valid') ) WHERE NOT (LENGTH(password) BETWEEN 0 AND 255 AND password REGEXP '^.+$') [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'password is required field' , CONCAT( validate_errors, ', ', 'password is required field') ) WHERE password IS NULL OR TRIM(password) = '' [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'user_role is required field' , CONCAT( validate_errors, ', ', 'user_role is required field') ) WHERE user_role IS NULL OR TRIM(user_role) = '' [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'group_uuid is required field' , CONCAT( validate_errors, ', ', 'group_uuid is required field') ) WHERE group_uuid IS NULL OR TRIM(group_uuid) = '' [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'country_name is required field' , CONCAT( validate_errors, ', ', 'country_name is required field') ) WHERE country_name IS NULL OR TRIM(country_name) = '' [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'zipcode is required field' , CONCAT( validate_errors, ', ', 'zipcode is required field') ) WHERE zipcode IS NULL OR TRIM(zipcode) = '' [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp JOIN users AS u ON u.mobile = tmp.mobile SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user already present with mobile' , CONCAT( tmp.validate_errors, ', ', 'user already present with mobile') ) WHERE u.deleted_at IS NULL [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp JOIN users AS u ON u.email = tmp.email SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user already present with email' , CONCAT( tmp.validate_errors, ', ', 'user already present with email') ) WHERE u.deleted_at IS NULL [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp LEFT JOIN coins_for_college_roles AS r ON r.role_name = tmp.user_role SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user_role not found' , CONCAT( tmp.validate_errors, ', ', 'user_role not found') ) WHERE r.coins_for_college_role_id IS NULL AND r.deleted_at IS NULL [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp LEFT JOIN coins_for_college_roles AS r ON r.role_name = tmp.user_role SET tmp.coins_for_college_role_id = r.coins_for_college_role_id WHERE r.coins_for_college_role_id IS NOT NULL AND r.deleted_at IS NULL [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-20 03:29:25] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'full_name is required field' , CONCAT( validate_errors, ', ', 'full_name is required field') ) WHERE full_name IS NULL OR TRIM(full_name) = '' [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'profile_pic_url is not valid' , CONCAT( validate_errors, ', ', 'profile_pic_url is not valid') ) WHERE NOT (LENGTH(profile_pic_url) BETWEEN 3 AND 2048 AND profile_pic_url REGEXP '^.+$') [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is not valid' , CONCAT( validate_errors, ', ', 'email is not valid') ) WHERE NOT (LENGTH(email) BETWEEN 0 AND 255 AND email REGEXP '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$') [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'email is required field' , CONCAT( validate_errors, ', ', 'email is required field') ) WHERE email IS NULL OR TRIM(email) = '' [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is not valid' , CONCAT( validate_errors, ', ', 'mobile is not valid') ) WHERE NOT (LENGTH(mobile) BETWEEN 0 AND 255 AND mobile REGEXP '^[0-9]{8,15}$') [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'mobile is required field' , CONCAT( validate_errors, ', ', 'mobile is required field') ) WHERE mobile IS NULL OR TRIM(mobile) = '' [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'password is not valid' , CONCAT( validate_errors, ', ', 'password is not valid') ) WHERE NOT (LENGTH(password) BETWEEN 0 AND 255 AND password REGEXP '^.+$') [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'password is required field' , CONCAT( validate_errors, ', ', 'password is required field') ) WHERE password IS NULL OR TRIM(password) = '' [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'user_role is required field' , CONCAT( validate_errors, ', ', 'user_role is required field') ) WHERE user_role IS NULL OR TRIM(user_role) = '' [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'group_uuid is required field' , CONCAT( validate_errors, ', ', 'group_uuid is required field') ) WHERE group_uuid IS NULL OR TRIM(group_uuid) = '' [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'country_name is required field' , CONCAT( validate_errors, ', ', 'country_name is required field') ) WHERE country_name IS NULL OR TRIM(country_name) = '' [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'zipcode is required field' , CONCAT( validate_errors, ', ', 'zipcode is required field') ) WHERE zipcode IS NULL OR TRIM(zipcode) = '' [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp JOIN users AS u ON u.mobile = tmp.mobile SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user already present with mobile' , CONCAT( tmp.validate_errors, ', ', 'user already present with mobile') ) WHERE u.deleted_at IS NULL [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp JOIN users AS u ON u.email = tmp.email SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user already present with email' , CONCAT( tmp.validate_errors, ', ', 'user already present with email') ) WHERE u.deleted_at IS NULL [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp LEFT JOIN coins_for_college_roles AS r ON r.role_name = tmp.user_role SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'user_role not found' , CONCAT( tmp.validate_errors, ', ', 'user_role not found') ) WHERE r.coins_for_college_role_id IS NULL AND r.deleted_at IS NULL [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp LEFT JOIN coins_for_college_roles AS r ON r.role_name = tmp.user_role SET tmp.coins_for_college_role_id = r.coins_for_college_role_id WHERE r.coins_for_college_role_id IS NOT NULL AND r.deleted_at IS NULL [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp LEFT JOIN `users` AS u ON u.uuid = tmp.user_uuid SET tmp.user_id = u.user_id WHERE u.user_id IS NOT NULL AND u.deleted_at IS NULL [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp LEFT JOIN `sp_wallet` AS wallet ON wallet.wallet_uid = tmp.sp_wallet_uid SET tmp.sp_wallet_id = wallet.sp_wallet_id WHERE wallet.sp_wallet_id IS NOT NULL AND wallet.deleted_at IS NULL AND tmp.validate_is_valid = 1 [2024-06-20 03:29:41] local.DEBUG: Running Update Query: UPDATE temp_6673a20dc3295 AS tmp LEFT JOIN `tuit_wallet` AS wallet ON wallet.wallet_uid = tmp.tuit_wallet_uid SET tmp.tuit_wallet_id = wallet.tuit_wallet_id WHERE wallet.tuit_wallet_id IS NOT NULL AND wallet.deleted_at IS NULL AND tmp.validate_is_valid = 1 [2024-06-20 06:40:54] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-20 06:40:54] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-20 07:05:03] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-20 09:56:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 09:56:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-20 10:03:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 10:03:59] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 10:20:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 10:20:03] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 10:20:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 10:20:03] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 10:22:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 10:22:04] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 11:58:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 11:58:22] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 11:58:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 11:58:57] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 11:58:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 11:58:58] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 12:37:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 12:37:34] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 12:39:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 12:39:53] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 12:42:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 12:42:05] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 12:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 12:50:13] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 13:03:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 13:03:09] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 13:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 13:04:28] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 13:11:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 13:11:42] local.DEBUG: Values for Sql:Array ( [0] => 193 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 244 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 39574 [12] => Harrison [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Harrison ) [2024-06-20 13:24:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 13:24:57] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 16:17:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 16:17:44] local.DEBUG: Values for Sql:Array ( [0] => 294 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 358 ) [2024-06-20 16:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 16:51:22] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 16:51:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:51:32] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-20 16:51:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-20 16:51:32] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 16:51:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-20 16:51:47] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 171 ) [2024-06-20 16:51:47] local.DEBUG: Current Balance: 50 [2024-06-20 16:51:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:51:51] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-20 16:51:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-20 16:51:51] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 16:51:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 16:51:54] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 16:52:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:52:00] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-20 16:52:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-20 16:52:00] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 16:54:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 16:54:08] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 16:54:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 16:54:08] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 16:54:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 16:54:32] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 16:54:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 16:54:51] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 16:54:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 16:54:57] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 16:54:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:54:59] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 16:54:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:54:59] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 16:54:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:54:59] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 16:55:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:55:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-20 16:55:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-20 16:55:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 16:55:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 16:55:50] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 16:56:31] local.DEBUG: Product Image Details: Array ( [product_id] => 281 [image_name] => 8642240421718902591.png ) [2024-06-20 16:56:31] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 110 [2024-06-20 16:56:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:56:32] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 16:56:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:56:32] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 16:56:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:56:32] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 16:56:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:56:36] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 16:56:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:56:36] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 16:56:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:56:36] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 16:57:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-20 16:57:55] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 281 ) [2024-06-20 16:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:58:34] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 16:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:58:34] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 16:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:58:34] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 16:58:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-20 16:58:37] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 281 ) [2024-06-20 16:59:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:59:35] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 16:59:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:59:35] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 16:59:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:59:35] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 16:59:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:59:43] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 16:59:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:59:43] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 16:59:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 16:59:43] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:00:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:00:03] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:00:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:00:03] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:00:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:00:03] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:00:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 17:00:33] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:00:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:00:34] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:00:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:00:34] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:00:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:00:34] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:00:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:00:46] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:00:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:00:46] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:00:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:00:46] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:01:38] local.DEBUG: Product Image Details: Array ( [product_id] => 282 [image_name] => 10707678651718902898.png ) [2024-06-20 17:01:38] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 110 [2024-06-20 17:01:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:01:38] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:01:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:01:38] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:01:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:01:38] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:02:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-20 17:02:25] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 282 ) [2024-06-20 17:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:02:49] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:02:49] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:02:49] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:03:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:03:25] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:03:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:03:25] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:03:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:03:25] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:03:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 17:03:27] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:03:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 17:03:31] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:03:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:03:33] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:03:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:03:33] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:03:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:03:33] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:04:24] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"chandra@luminousmindsinc.com","name":"Chandra Roughton"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Chandra Roughton,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">56090<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-20 17:04:24] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.252a64a0-2f27-11ef-89d2-525400e18d05.190369b47ea","object":"email"} [2024-06-20 17:05:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 17:05:38] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:05:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:05:39] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:05:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:05:39] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:05:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:05:39] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:06:42] local.DEBUG: Product Image Details: Array ( [product_id] => 283 [image_name] => 10377387651718903202.png ) [2024-06-20 17:06:42] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 110 [2024-06-20 17:06:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:06:43] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:06:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:06:43] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:06:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:06:43] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:07:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 17:07:06] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:07:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:07:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:07:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:07:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 17:07:40] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:07:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 17:07:40] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:07:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:41] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:07:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:41] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:07:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:41] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:07:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-20 17:07:43] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 283 ) [2024-06-20 17:07:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:48] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:07:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:48] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:07:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:48] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:07:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:55] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:07:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:55] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:07:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:07:55] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:08:27] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 413 [2024-06-20 17:09:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-20 17:09:25] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 17:09:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:09:43] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-20 17:09:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-20 17:09:43] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 17:09:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-20 17:09:52] local.DEBUG: Values for Sql:Array ( [0] => 126 ) [2024-06-20 17:09:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:09:52] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:09:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:09:52] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:09:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:09:52] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:09:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-20 17:09:57] local.DEBUG: Values for Sql:Array ( [0] => 126 ) [2024-06-20 17:09:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:09:57] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:09:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:09:58] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:09:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:09:58] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:10:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-20 17:10:06] local.DEBUG: Values for Sql:Array ( [0] => 121 ) [2024-06-20 17:10:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:10:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 17:10:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:10:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 17:10:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:10:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-20 17:10:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-20 17:10:15] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:10:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-20 17:10:17] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:10:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-20 17:10:19] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:10:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-20 17:10:22] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:10:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:10:24] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-20 17:10:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-20 17:10:24] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 17:10:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:10:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-20 17:10:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-20 17:10:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 17:10:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-20 17:10:29] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 17:10:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:10:31] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-20 17:10:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-20 17:10:31] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 17:10:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 17:10:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-20 17:10:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-20 17:10:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-20 17:10:46] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-20 17:10:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-20 17:10:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 201 ) [2024-06-20 17:10:56] local.DEBUG: Current Balance: 0 [2024-06-20 17:14:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-20 17:14:44] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 283 ) [2024-06-20 18:52:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 18:52:11] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 213 ) [2024-06-20 18:52:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 18:52:37] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 18:52:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-20 18:52:37] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-20 18:53:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 18:53:18] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-20 18:53:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 18:53:18] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-20 18:53:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-20 18:53:19] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-21 04:55:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 04:55:49] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-21 04:57:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 04:57:38] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-21 04:57:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 04:57:38] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-21 04:57:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 04:57:38] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-21 04:58:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 04:58:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-21 06:03:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 06:03:10] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:48:56] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:48:56] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:48:56] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:48:56] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:48:56] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:48:56] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:48:56] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:48:56] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:48:56] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:48:56] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:48:56] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:48:56] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:48:56] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:48:56] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:48:56] local.DEBUG: Validation Result: [2024-06-21 07:49:05] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task1.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:49:15] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10000 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task1.jpg [2024-06-21 07:49:15] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task2.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:49:25] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10000 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task2.jpg [2024-06-21 07:49:25] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task3.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:49:35] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10000 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task3.jpg [2024-06-21 07:49:35] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task4.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:49:45] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10000 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task4.jpg [2024-06-21 07:49:45] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task5.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:49:55] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10000 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task5.jpg [2024-06-21 07:49:55] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task6.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:50:03] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:50:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:50:03] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:50:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:50:03] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:50:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:50:03] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:50:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:50:03] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:50:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 07:50:03] local.DEBUG: regex patter: /^.+$/ [2024-06-21 07:50:03] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 07:50:03] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:03] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 07:50:03] local.DEBUG: Validation Result: [2024-06-21 07:50:05] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10000 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task6.jpg [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_name is required field' , CONCAT( validate_errors, ', ', 'product_name is required field') ) WHERE product_name IS NULL OR TRIM(product_name) = '' [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'description is required field' , CONCAT( validate_errors, ', ', 'description is required field') ) WHERE description IS NULL OR TRIM(description) = '' [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_category_name is required field' , CONCAT( validate_errors, ', ', 'product_category_name is required field') ) WHERE product_category_name IS NULL OR TRIM(product_category_name) = '' [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_sp is required field' , CONCAT( validate_errors, ', ', 'product_sp is required field') ) WHERE product_sp IS NULL OR TRIM(product_sp) = '' [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on is required field' , CONCAT( validate_errors, ', ', 'expires_on is required field') ) WHERE expires_on IS NULL OR TRIM(expires_on) = '' [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on need to be in future' , CONCAT( validate_errors, ', ', 'expires_on need to be in future') ) WHERE expires_on IS NOT NULL AND expires_on <= NOW() [2024-06-21 07:50:05] local.DEBUG: Running batch #0 [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_image_url is not valid' , CONCAT( validate_errors, ', ', 'product_image_url is not valid') ) WHERE NOT (LENGTH(product_image_url) BETWEEN 3 AND 2048 AND product_image_url REGEXP '^.+$') [2024-06-21 07:50:05] local.DEBUG: Running batch #0 [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 AS tmp LEFT JOIN `users` AS u ON u.uuid = tmp.visible_to_user_uuid SET tmp.visible_to_user_id = u.user_id WHERE tmp.visible_to_user_uuid IS NOT NULL AND u.user_id IS NOT NULL AND u.deleted_at IS NULL [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'product_category_name not found' , CONCAT( tmp.validate_errors, ', ', 'product_category_name not found') ) WHERE pg.product_category_id IS NULL AND pg.deleted_at IS NULL [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.product_category_id = pg.product_category_id WHERE pg.product_category_id IS NOT NULL AND pg.deleted_at IS NULL [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE tmp.group_uuid IS NOT NULL AND g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-21 07:50:05] local.DEBUG: Running Update Query: UPDATE temp_66753068b56d5 AS tmp SET tmp.product_type = CASE WHEN visible_to IS NOT NULL AND FIND_IN_SET ( visible_to, 'GLOBAL,GLOBAL_FOR_PARENT_AND_CHILD') THEN 'GLOBAL' ELSE 'REWARD' END WHERE tmp.validate_is_valid = 1 [2024-06-21 07:50:07] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task1.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:50:17] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task1.jpg [2024-06-21 07:50:17] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task2.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:50:27] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task2.jpg [2024-06-21 07:50:27] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task3.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:50:37] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task3.jpg [2024-06-21 07:50:37] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task4.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:50:47] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task4.jpg [2024-06-21 07:50:47] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task5.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:50:57] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task5.jpg [2024-06-21 07:50:57] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task6.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 07:51:07] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task6.jpg [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_name is required field' , CONCAT( validate_errors, ', ', 'product_name is required field') ) WHERE product_name IS NULL OR TRIM(product_name) = '' [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'description is required field' , CONCAT( validate_errors, ', ', 'description is required field') ) WHERE description IS NULL OR TRIM(description) = '' [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_category_name is required field' , CONCAT( validate_errors, ', ', 'product_category_name is required field') ) WHERE product_category_name IS NULL OR TRIM(product_category_name) = '' [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_sp is required field' , CONCAT( validate_errors, ', ', 'product_sp is required field') ) WHERE product_sp IS NULL OR TRIM(product_sp) = '' [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on is required field' , CONCAT( validate_errors, ', ', 'expires_on is required field') ) WHERE expires_on IS NULL OR TRIM(expires_on) = '' [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on need to be in future' , CONCAT( validate_errors, ', ', 'expires_on need to be in future') ) WHERE expires_on IS NOT NULL AND expires_on <= NOW() [2024-06-21 07:51:07] local.DEBUG: Running batch #0 [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_image_url is not valid' , CONCAT( validate_errors, ', ', 'product_image_url is not valid') ) WHERE NOT (LENGTH(product_image_url) BETWEEN 3 AND 2048 AND product_image_url REGEXP '^.+$') [2024-06-21 07:51:07] local.DEBUG: Running batch #0 [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp LEFT JOIN `users` AS u ON u.uuid = tmp.visible_to_user_uuid SET tmp.visible_to_user_id = u.user_id WHERE tmp.visible_to_user_uuid IS NOT NULL AND u.user_id IS NOT NULL AND u.deleted_at IS NULL [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'product_category_name not found' , CONCAT( tmp.validate_errors, ', ', 'product_category_name not found') ) WHERE pg.product_category_id IS NULL AND pg.deleted_at IS NULL [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.product_category_id = pg.product_category_id WHERE pg.product_category_id IS NOT NULL AND pg.deleted_at IS NULL [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE tmp.group_uuid IS NOT NULL AND g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-21 07:51:07] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp SET tmp.product_type = CASE WHEN visible_to IS NOT NULL AND FIND_IN_SET ( visible_to, 'GLOBAL,GLOBAL_FOR_PARENT_AND_CHILD') THEN 'GLOBAL' ELSE 'REWARD' END WHERE tmp.validate_is_valid = 1 [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_name is required field' , CONCAT( validate_errors, ', ', 'product_name is required field') ) WHERE product_name IS NULL OR TRIM(product_name) = '' [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'description is required field' , CONCAT( validate_errors, ', ', 'description is required field') ) WHERE description IS NULL OR TRIM(description) = '' [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_category_name is required field' , CONCAT( validate_errors, ', ', 'product_category_name is required field') ) WHERE product_category_name IS NULL OR TRIM(product_category_name) = '' [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_sp is required field' , CONCAT( validate_errors, ', ', 'product_sp is required field') ) WHERE product_sp IS NULL OR TRIM(product_sp) = '' [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on is required field' , CONCAT( validate_errors, ', ', 'expires_on is required field') ) WHERE expires_on IS NULL OR TRIM(expires_on) = '' [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on need to be in future' , CONCAT( validate_errors, ', ', 'expires_on need to be in future') ) WHERE expires_on IS NOT NULL AND expires_on <= NOW() [2024-06-21 07:51:22] local.DEBUG: Running batch #0 [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_image_url is not valid' , CONCAT( validate_errors, ', ', 'product_image_url is not valid') ) WHERE NOT (LENGTH(product_image_url) BETWEEN 3 AND 2048 AND product_image_url REGEXP '^.+$') [2024-06-21 07:51:22] local.DEBUG: Running batch #0 [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp LEFT JOIN `users` AS u ON u.uuid = tmp.visible_to_user_uuid SET tmp.visible_to_user_id = u.user_id WHERE tmp.visible_to_user_uuid IS NOT NULL AND u.user_id IS NOT NULL AND u.deleted_at IS NULL [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'product_category_name not found' , CONCAT( tmp.validate_errors, ', ', 'product_category_name not found') ) WHERE pg.product_category_id IS NULL AND pg.deleted_at IS NULL [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.product_category_id = pg.product_category_id WHERE pg.product_category_id IS NOT NULL AND pg.deleted_at IS NULL [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE tmp.group_uuid IS NOT NULL AND g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-21 07:51:22] local.DEBUG: Running Update Query: UPDATE temp_667530ab23b73 AS tmp SET tmp.product_type = CASE WHEN visible_to IS NOT NULL AND FIND_IN_SET ( visible_to, 'GLOBAL,GLOBAL_FOR_PARENT_AND_CHILD') THEN 'GLOBAL' ELSE 'REWARD' END WHERE tmp.validate_is_valid = 1 [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:01:58] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:01:58] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:01:58] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:01:58] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:01:58] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:01:58] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:01:58] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:01:58] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:01:58] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:01:58] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:01:58] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:01:58] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:01:58] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:01:58] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:01:58] local.DEBUG: Validation Result: [2024-06-21 08:02:01] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task1.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:02:11] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task1.jpg [2024-06-21 08:02:11] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task2.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:02:21] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task2.jpg [2024-06-21 08:02:21] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task3.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:02:31] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10005 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task3.jpg [2024-06-21 08:02:31] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task4.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:02:41] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10002 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task4.jpg [2024-06-21 08:02:41] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task5.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:02:51] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task5.jpg [2024-06-21 08:02:51] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task6.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:03:01] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task6.jpg [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_name is required field' , CONCAT( validate_errors, ', ', 'product_name is required field') ) WHERE product_name IS NULL OR TRIM(product_name) = '' [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'description is required field' , CONCAT( validate_errors, ', ', 'description is required field') ) WHERE description IS NULL OR TRIM(description) = '' [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_category_name is required field' , CONCAT( validate_errors, ', ', 'product_category_name is required field') ) WHERE product_category_name IS NULL OR TRIM(product_category_name) = '' [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_sp is required field' , CONCAT( validate_errors, ', ', 'product_sp is required field') ) WHERE product_sp IS NULL OR TRIM(product_sp) = '' [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on is required field' , CONCAT( validate_errors, ', ', 'expires_on is required field') ) WHERE expires_on IS NULL OR TRIM(expires_on) = '' [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on need to be in future' , CONCAT( validate_errors, ', ', 'expires_on need to be in future') ) WHERE expires_on IS NOT NULL AND expires_on <= NOW() [2024-06-21 08:03:01] local.DEBUG: Running batch #0 [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_image_url is not valid' , CONCAT( validate_errors, ', ', 'product_image_url is not valid') ) WHERE NOT (LENGTH(product_image_url) BETWEEN 3 AND 2048 AND product_image_url REGEXP '^.+$') [2024-06-21 08:03:01] local.DEBUG: Running batch #0 [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp LEFT JOIN `users` AS u ON u.uuid = tmp.visible_to_user_uuid SET tmp.visible_to_user_id = u.user_id WHERE tmp.visible_to_user_uuid IS NOT NULL AND u.user_id IS NOT NULL AND u.deleted_at IS NULL [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'product_category_name not found' , CONCAT( tmp.validate_errors, ', ', 'product_category_name not found') ) WHERE pg.product_category_id IS NULL AND pg.deleted_at IS NULL [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.product_category_id = pg.product_category_id WHERE pg.product_category_id IS NOT NULL AND pg.deleted_at IS NULL [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE tmp.group_uuid IS NOT NULL AND g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-21 08:03:01] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp SET tmp.product_type = CASE WHEN visible_to IS NOT NULL AND FIND_IN_SET ( visible_to, 'GLOBAL,GLOBAL_FOR_PARENT_AND_CHILD') AND group_id IS NOT NULL THEN 'GLOBAL' ELSE 'REWARD' END WHERE tmp.validate_is_valid = 1 [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_name is required field' , CONCAT( validate_errors, ', ', 'product_name is required field') ) WHERE product_name IS NULL OR TRIM(product_name) = '' [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'description is required field' , CONCAT( validate_errors, ', ', 'description is required field') ) WHERE description IS NULL OR TRIM(description) = '' [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_category_name is required field' , CONCAT( validate_errors, ', ', 'product_category_name is required field') ) WHERE product_category_name IS NULL OR TRIM(product_category_name) = '' [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_sp is required field' , CONCAT( validate_errors, ', ', 'product_sp is required field') ) WHERE product_sp IS NULL OR TRIM(product_sp) = '' [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on is required field' , CONCAT( validate_errors, ', ', 'expires_on is required field') ) WHERE expires_on IS NULL OR TRIM(expires_on) = '' [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on need to be in future' , CONCAT( validate_errors, ', ', 'expires_on need to be in future') ) WHERE expires_on IS NOT NULL AND expires_on <= NOW() [2024-06-21 08:03:10] local.DEBUG: Running batch #0 [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_image_url is not valid' , CONCAT( validate_errors, ', ', 'product_image_url is not valid') ) WHERE NOT (LENGTH(product_image_url) BETWEEN 3 AND 2048 AND product_image_url REGEXP '^.+$') [2024-06-21 08:03:10] local.DEBUG: Running batch #0 [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp LEFT JOIN `users` AS u ON u.uuid = tmp.visible_to_user_uuid SET tmp.visible_to_user_id = u.user_id WHERE tmp.visible_to_user_uuid IS NOT NULL AND u.user_id IS NOT NULL AND u.deleted_at IS NULL [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'product_category_name not found' , CONCAT( tmp.validate_errors, ', ', 'product_category_name not found') ) WHERE pg.product_category_id IS NULL AND pg.deleted_at IS NULL [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.product_category_id = pg.product_category_id WHERE pg.product_category_id IS NOT NULL AND pg.deleted_at IS NULL [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE tmp.group_uuid IS NOT NULL AND g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-21 08:03:10] local.DEBUG: Running Update Query: UPDATE temp_66753376bcbcd AS tmp SET tmp.product_type = CASE WHEN visible_to IS NOT NULL AND FIND_IN_SET ( visible_to, 'GLOBAL,GLOBAL_FOR_PARENT_AND_CHILD') AND group_id IS NOT NULL THEN 'GLOBAL' ELSE 'REWARD' END WHERE tmp.validate_is_valid = 1 [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:09:29] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:09:29] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:09:29] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:09:29] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:09:29] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:09:29] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:09:29] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:09:29] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:09:29] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:09:29] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 08:09:29] local.DEBUG: regex patter: /^.+$/ [2024-06-21 08:09:29] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 08:09:29] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:29] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 08:09:29] local.DEBUG: Validation Result: [2024-06-21 08:09:39] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task1.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:09:49] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task1.jpg [2024-06-21 08:09:49] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task2.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:09:59] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task2.jpg [2024-06-21 08:09:59] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task3.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:10:09] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10000 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task3.jpg [2024-06-21 08:10:09] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task4.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:10:19] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10002 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task4.jpg [2024-06-21 08:10:19] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task5.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:10:29] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task5.jpg [2024-06-21 08:10:29] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task6.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 08:10:39] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task6.jpg [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_name is required field' , CONCAT( validate_errors, ', ', 'product_name is required field') ) WHERE product_name IS NULL OR TRIM(product_name) = '' [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'description is required field' , CONCAT( validate_errors, ', ', 'description is required field') ) WHERE description IS NULL OR TRIM(description) = '' [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_category_name is required field' , CONCAT( validate_errors, ', ', 'product_category_name is required field') ) WHERE product_category_name IS NULL OR TRIM(product_category_name) = '' [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_sp is required field' , CONCAT( validate_errors, ', ', 'product_sp is required field') ) WHERE product_sp IS NULL OR TRIM(product_sp) = '' [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on is required field' , CONCAT( validate_errors, ', ', 'expires_on is required field') ) WHERE expires_on IS NULL OR TRIM(expires_on) = '' [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on need to be in future' , CONCAT( validate_errors, ', ', 'expires_on need to be in future') ) WHERE expires_on IS NOT NULL AND expires_on <= NOW() [2024-06-21 08:10:39] local.DEBUG: Running batch #0 [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_image_url is not valid' , CONCAT( validate_errors, ', ', 'product_image_url is not valid') ) WHERE NOT (LENGTH(product_image_url) BETWEEN 3 AND 2048 AND product_image_url REGEXP '^.+$') [2024-06-21 08:10:39] local.DEBUG: Running batch #0 [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c AS tmp LEFT JOIN `users` AS u ON u.uuid = tmp.visible_to_user_uuid SET tmp.visible_to_user_id = u.user_id WHERE tmp.visible_to_user_uuid IS NOT NULL AND u.user_id IS NOT NULL AND u.deleted_at IS NULL [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'product_category_name not found' , CONCAT( tmp.validate_errors, ', ', 'product_category_name not found') ) WHERE pg.product_category_id IS NULL AND pg.deleted_at IS NULL [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.product_category_id = pg.product_category_id WHERE pg.product_category_id IS NOT NULL AND pg.deleted_at IS NULL [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE tmp.group_uuid IS NOT NULL AND g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-21 08:10:39] local.DEBUG: Running Update Query: UPDATE temp_66753539a8d4c AS tmp SET tmp.product_type = CASE WHEN visible_to IS NOT NULL AND FIND_IN_SET ( visible_to, 'GLOBAL,GLOBAL_FOR_PARENT_AND_CHILD') AND group_id IS NOT NULL THEN 'GLOBAL' ELSE 'REWARD' END WHERE tmp.validate_is_valid = 1 [2024-06-21 08:24:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 08:24:58] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-21 08:24:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 08:24:58] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-21 08:25:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:25:10] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => -1 ) [2024-06-21 08:25:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:25:10] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 1 [18] => 359 [19] => -1 ) [2024-06-21 08:25:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:25:10] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 359 [18] => -1 ) [2024-06-21 08:25:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-21 08:25:41] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 10 [18] => 11 [19] => 12 [20] => 13 [21] => 14 [22] => 15 [23] => 16 [24] => 17 [25] => 18 [26] => 19 [27] => 20 [28] => 21 [29] => 22 [30] => 23 [31] => 24 [32] => 25 [33] => 26 [34] => 27 [35] => 28 [36] => 29 [37] => 30 [38] => 31 [39] => 34 [40] => 35 [41] => 36 [42] => 37 [43] => 38 [44] => 40 [45] => 44 [46] => 45 [47] => 46 [48] => 47 [49] => 48 [50] => 49 [51] => 50 [52] => 51 [53] => 52 [54] => 53 [55] => 54 [56] => 55 [57] => 56 [58] => 57 [59] => 58 [60] => 59 [61] => 77 [62] => 86 [63] => 87 [64] => 88 [65] => 89 [66] => 91 [67] => 92 [68] => 93 [69] => 94 [70] => 95 [71] => 96 [72] => 97 [73] => 98 [74] => 99 [75] => 104 [76] => 105 [77] => 106 [78] => 107 [79] => 108 [80] => 109 [81] => 110 [82] => 111 [83] => 112 [84] => 114 [85] => 115 [86] => 116 [87] => 120 [88] => 123 [89] => 124 [90] => 125 [91] => 126 [92] => 127 [93] => 128 [94] => 129 [95] => 130 [96] => 131 [97] => 132 [98] => 133 [99] => 134 [100] => 135 [101] => 136 [102] => 137 [103] => 138 [104] => 139 [105] => 140 [106] => 141 [107] => 142 [108] => 143 [109] => 144 [110] => 148 [111] => 149 [112] => 154 [113] => 155 [114] => 156 [115] => 157 [116] => 158 [117] => 159 [118] => 160 [119] => 161 [120] => 162 [121] => 163 [122] => 164 [123] => 165 [124] => 166 [125] => 167 [126] => 168 [127] => 169 [128] => 170 [129] => 171 [130] => 172 [131] => 173 [132] => 174 [133] => 175 [134] => 176 [135] => 177 [136] => 178 [137] => 179 [138] => 180 [139] => 181 [140] => 182 [141] => 183 [142] => 184 [143] => 185 [144] => 186 [145] => 187 [146] => 189 [147] => 190 [148] => 191 [149] => 192 [150] => 193 [151] => 194 [152] => 195 [153] => 196 [154] => 197 [155] => 199 [156] => 200 [157] => 201 [158] => 202 [159] => 203 [160] => 204 [161] => 206 [162] => 207 [163] => 208 [164] => 209 [165] => 210 [166] => 211 [167] => 213 [168] => 214 [169] => 215 [170] => 216 [171] => 217 [172] => 218 [173] => 219 [174] => 220 [175] => 221 [176] => 222 [177] => 223 [178] => 224 [179] => 225 [180] => 226 [181] => 227 [182] => 228 [183] => 229 [184] => 230 [185] => 231 [186] => 232 [187] => 233 [188] => 234 [189] => 235 [190] => 236 [191] => 237 [192] => 238 [193] => 239 [194] => 240 [195] => 241 [196] => 242 [197] => 243 [198] => 244 [199] => 245 [200] => 246 [201] => 247 [202] => 248 [203] => 249 [204] => 250 [205] => 251 [206] => 252 [207] => 253 [208] => 254 [209] => 255 [210] => 256 [211] => 257 [212] => 258 [213] => 259 [214] => 260 [215] => 261 [216] => 262 [217] => 263 [218] => 264 [219] => 265 [220] => 266 [221] => 267 [222] => 268 [223] => 269 [224] => 270 [225] => 271 [226] => 272 [227] => 273 [228] => 274 [229] => 275 [230] => 276 [231] => 277 [232] => 278 [233] => 279 [234] => 280 [235] => 281 [236] => 282 [237] => 283 [238] => 284 [239] => 285 [240] => 286 [241] => 287 [242] => 288 [243] => 289 [244] => 290 [245] => 291 [246] => 292 [247] => 293 [248] => 294 [249] => 295 [250] => 296 [251] => 297 [252] => 298 [253] => 299 [254] => 300 [255] => 301 [256] => 302 [257] => 303 [258] => 304 [259] => 305 [260] => 306 [261] => 307 [262] => 308 [263] => 309 [264] => 310 [265] => 311 [266] => 312 [267] => 313 [268] => 314 [269] => 315 [270] => 316 [271] => 317 [272] => 318 [273] => 319 [274] => 320 [275] => 321 [276] => 322 [277] => 323 [278] => 324 [279] => 325 [280] => 326 [281] => 327 [282] => 328 [283] => 329 [284] => 330 [285] => 331 [286] => 332 [287] => 333 [288] => 334 [289] => 335 [290] => 336 [291] => 337 [292] => 338 [293] => 339 [294] => 340 [295] => 341 [296] => 342 [297] => 343 [298] => 344 [299] => 345 [300] => 346 [301] => 347 [302] => 348 [303] => 349 [304] => 350 [305] => 351 [306] => 352 [307] => 353 [308] => 354 [309] => 355 [310] => 356 [311] => 357 [312] => 358 [313] => 359 [314] => 360 [315] => 361 [316] => 362 [317] => 363 [318] => 364 [319] => 365 [320] => 366 [321] => 367 [322] => 368 [323] => 369 [324] => 370 [325] => 371 [326] => 372 [327] => 373 [328] => 374 [329] => 375 [330] => 376 [331] => 377 [332] => 378 [333] => 379 [334] => 380 [335] => 381 [336] => 382 [337] => 383 [338] => 384 [339] => 385 [340] => 386 [341] => 387 [342] => 388 [343] => 389 [344] => 390 [345] => 391 [346] => 392 [347] => 393 [348] => 394 [349] => 395 [350] => 396 [351] => 397 [352] => 398 [353] => 399 [354] => 400 [355] => 401 [356] => 402 [357] => 403 [358] => 404 [359] => 405 [360] => 406 [361] => 407 [362] => 408 [363] => 409 [364] => 410 [365] => 411 [366] => 412 [367] => 413 ) [2024-06-21 08:25:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:25:50] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => -1 ) [2024-06-21 08:25:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:25:50] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 1 [18] => 359 [19] => -1 ) [2024-06-21 08:25:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:25:50] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 359 [18] => -1 ) [2024-06-21 08:26:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-21 08:26:07] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 2 ) [2024-06-21 08:26:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-21 08:26:08] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 2 ) [2024-06-21 08:26:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:26:26] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => -1 ) [2024-06-21 08:26:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:26:26] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 1 [18] => 359 [19] => -1 ) [2024-06-21 08:26:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:26:26] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 359 [18] => -1 ) [2024-06-21 08:26:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-21 08:26:32] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 3 ) [2024-06-21 08:26:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:26:34] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => -1 ) [2024-06-21 08:26:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:26:34] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 1 [18] => 359 [19] => -1 ) [2024-06-21 08:26:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 08:26:34] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 359 [18] => -1 ) [2024-06-21 09:29:34] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 09:29:34] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 ) [2024-06-21 09:29:35] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 09:29:35] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 ) [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 10:42:28] local.DEBUG: regex patter: /^.+$/ [2024-06-21 10:42:28] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 10:42:28] local.DEBUG: regex patter: /^.+$/ [2024-06-21 10:42:28] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 10:42:28] local.DEBUG: regex patter: /^.+$/ [2024-06-21 10:42:28] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 10:42:28] local.DEBUG: regex patter: /^.+$/ [2024-06-21 10:42:28] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 10:42:28] local.DEBUG: regex patter: /^.+$/ [2024-06-21 10:42:28] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: description [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_category_name [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: product_sp [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: NOT_NULL_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: FUTURE_DATE_VALIDATOR for Field: expires_on [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_REQUIREMENT_FOR_CLAIM_VALIDATOR for Field: requirement_for_claim [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: STRING_VALIDATOR for Field: product_image_url [2024-06-21 10:42:28] local.DEBUG: regex patter: /^.+$/ [2024-06-21 10:42:28] local.DEBUG: Validation Result: Array ( [error] => [error_message] => ) [2024-06-21 10:42:28] local.DEBUG: Executing validator: PRODUCT_VISIBILITY_VALIDATOR for Field: visible_to [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: COUNTRY_NAME for Field: visible_to_country [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:28] local.DEBUG: Executing validator: ZIPCODE for Field: visible_to_zipcode [2024-06-21 10:42:28] local.DEBUG: Validation Result: [2024-06-21 10:42:31] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task1.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 10:42:41] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10000 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task1.jpg [2024-06-21 10:42:41] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task2.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 10:42:51] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task2.jpg [2024-06-21 10:42:51] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task3.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 10:43:01] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10002 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task3.jpg [2024-06-21 10:43:01] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task4.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 10:43:11] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task4.jpg [2024-06-21 10:43:11] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task5.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 10:43:21] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task5.jpg [2024-06-21 10:43:21] local.DEBUG: File to download: Array ( [url] => http://example.com/images/task6.jpg [target_folder] => product_images [default_file_url] => default-reward-image-color.jpg ) [2024-06-21 10:43:31] local.ERROR: Failed to download image: cURL error 28: Connection timeout after 10001 ms (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://example.com/images/task6.jpg [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_name is required field' , CONCAT( validate_errors, ', ', 'product_name is required field') ) WHERE product_name IS NULL OR TRIM(product_name) = '' [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'description is required field' , CONCAT( validate_errors, ', ', 'description is required field') ) WHERE description IS NULL OR TRIM(description) = '' [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_category_name is required field' , CONCAT( validate_errors, ', ', 'product_category_name is required field') ) WHERE product_category_name IS NULL OR TRIM(product_category_name) = '' [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_sp is required field' , CONCAT( validate_errors, ', ', 'product_sp is required field') ) WHERE product_sp IS NULL OR TRIM(product_sp) = '' [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on is required field' , CONCAT( validate_errors, ', ', 'expires_on is required field') ) WHERE expires_on IS NULL OR TRIM(expires_on) = '' [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on need to be in future' , CONCAT( validate_errors, ', ', 'expires_on need to be in future') ) WHERE expires_on IS NOT NULL AND expires_on <= NOW() [2024-06-21 10:43:31] local.DEBUG: Running batch #0 [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_image_url is not valid' , CONCAT( validate_errors, ', ', 'product_image_url is not valid') ) WHERE NOT (LENGTH(product_image_url) BETWEEN 3 AND 2048 AND product_image_url REGEXP '^.+$') [2024-06-21 10:43:31] local.DEBUG: Running batch #0 [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN `users` AS u ON u.uuid = tmp.visible_to_user_uuid SET tmp.visible_to_user_id = u.user_id WHERE tmp.visible_to_user_uuid IS NOT NULL AND u.user_id IS NOT NULL AND u.deleted_at IS NULL [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'product_category_name not found' , CONCAT( tmp.validate_errors, ', ', 'product_category_name not found') ) WHERE pg.product_category_id IS NULL AND pg.deleted_at IS NULL [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.product_category_id = pg.product_category_id WHERE pg.product_category_id IS NOT NULL AND pg.deleted_at IS NULL [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE tmp.group_uuid IS NOT NULL AND g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-21 10:43:31] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp SET tmp.product_type = CASE WHEN (visible_to IS NOT NULL AND FIND_IN_SET ( visible_to, 'GLOBAL,GLOBAL_FOR_PARENT_AND_CHILD') ) OR group_id IS NULL THEN 'GLOBAL' ELSE 'REWARD' END WHERE tmp.validate_is_valid = 1 [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_name is required field' , CONCAT( validate_errors, ', ', 'product_name is required field') ) WHERE product_name IS NULL OR TRIM(product_name) = '' [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'description is required field' , CONCAT( validate_errors, ', ', 'description is required field') ) WHERE description IS NULL OR TRIM(description) = '' [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_category_name is required field' , CONCAT( validate_errors, ', ', 'product_category_name is required field') ) WHERE product_category_name IS NULL OR TRIM(product_category_name) = '' [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_sp is required field' , CONCAT( validate_errors, ', ', 'product_sp is required field') ) WHERE product_sp IS NULL OR TRIM(product_sp) = '' [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on is required field' , CONCAT( validate_errors, ', ', 'expires_on is required field') ) WHERE expires_on IS NULL OR TRIM(expires_on) = '' [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'expires_on need to be in future' , CONCAT( validate_errors, ', ', 'expires_on need to be in future') ) WHERE expires_on IS NOT NULL AND expires_on <= NOW() [2024-06-21 10:43:42] local.DEBUG: Running batch #0 [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c SET validate_is_valid = false , validate_errors = IF(validate_errors IS NULL, 'product_image_url is not valid' , CONCAT( validate_errors, ', ', 'product_image_url is not valid') ) WHERE NOT (LENGTH(product_image_url) BETWEEN 3 AND 2048 AND product_image_url REGEXP '^.+$') [2024-06-21 10:43:42] local.DEBUG: Running batch #0 [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN `users` AS u ON u.uuid = tmp.visible_to_user_uuid SET tmp.visible_to_user_id = u.user_id WHERE tmp.visible_to_user_uuid IS NOT NULL AND u.user_id IS NOT NULL AND u.deleted_at IS NULL [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'product_category_name not found' , CONCAT( tmp.validate_errors, ', ', 'product_category_name not found') ) WHERE pg.product_category_id IS NULL AND pg.deleted_at IS NULL [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN product_categories AS pg ON pg.product_category_name = tmp.product_category_name SET tmp.product_category_id = pg.product_category_id WHERE pg.product_category_id IS NOT NULL AND pg.deleted_at IS NULL [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.validate_is_valid = false , tmp.validate_errors = IF(tmp.validate_errors IS NULL, 'group_uuid not found' , CONCAT( tmp.validate_errors, ', ', 'group_uuid not found') ) WHERE tmp.group_uuid IS NOT NULL AND g.group_id IS NULL AND g.deleted_at IS NULL [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN `groups` AS g ON g.uuid = tmp.group_uuid SET tmp.group_id = g.group_id , tmp.team_id = g.team_id WHERE g.group_id IS NOT NULL AND g.deleted_at IS NULL [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp SET tmp.product_type = CASE WHEN (visible_to IS NOT NULL AND FIND_IN_SET ( visible_to, 'GLOBAL,GLOBAL_FOR_PARENT_AND_CHILD') ) OR group_id IS NULL THEN 'GLOBAL' ELSE 'REWARD' END WHERE tmp.validate_is_valid = 1 [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN `products` AS p ON p.uuid = tmp.product_uuid SET tmp.product_id = p.product_id WHERE tmp.validate_is_valid = 1 AND p.product_id IS NOT NULL AND p.deleted_at IS NULL [2024-06-21 10:43:42] local.DEBUG: Running Update Query: UPDATE temp_667559141bd2c AS tmp LEFT JOIN `reward_settings` AS rs ON rs.reward_id = tmp.product_id SET tmp.reward_settings_id = rs.reward_settings_id WHERE tmp.validate_is_valid = 1 AND rs.reward_settings_id IS NOT NULL AND rs.deleted_at IS NULL [2024-06-21 10:59:03] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 10:59:03] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 ) [2024-06-21 11:16:25] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 11:16:25] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 [2] => %Stepped% ) [2024-06-21 11:34:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 11:34:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-21 12:53:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 12:53:20] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 12:53:21] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 12:53:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 12:53:24] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 12:53:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 12:53:26] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 12:53:26] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 12:54:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 12:54:11] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 12:54:12] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 12:54:12] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 12:54:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 12:54:58] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 12:55:01] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 12:55:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 13:08:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 13:08:53] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 13:08:54] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 13:08:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 13:09:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 13:09:06] local.DEBUG: Values for Sql:Array ( [0] => 291 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 355 ) [2024-06-21 13:09:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 13:09:17] local.DEBUG: Values for Sql:Array ( [0] => 291 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 355 ) [2024-06-21 13:09:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 13:09:18] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 13:09:20] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 13:09:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 13:10:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 13:10:41] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 13:11:06] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 13:11:06] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 13:11:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 13:11:51] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 13:11:53] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 13:11:53] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 13:13:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 13:13:11] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 13:13:11] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 13:13:11] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 13:13:13] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 13:13:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 13:13:15] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 13:13:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 13:14:41] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-21 13:14:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-21 18:06:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:06:13] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:06:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:06:21] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 18:06:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:06:21] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 18:06:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:06:21] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 18:07:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:07:20] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:07:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:07:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:07:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:07:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:08:36] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"yourfitgrandma@gmail.com","name":"yourfitgrandma@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello yourfitgrandma@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Haley Biale<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-21 18:08:37] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.47e5f630-2ff9-11ef-a939-525400cbcb5e.1903bfc6d13","object":"email"} [2024-06-21 18:10:36] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"yourfitgrandma@gmail.com","name":"Tricia Goldsmith"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Tricia Goldsmith,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">27554<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-21 18:10:36] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8f0b9d80-2ff9-11ef-a88c-525400d6cd4f.1903bfe3f58","object":"email"} [2024-06-21 18:11:22] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 414 [2024-06-21 18:13:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:13:07] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:13:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:13:10] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:13:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 18:13:38] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 18:14:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 18:14:31] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 18:14:34] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"yourfitgrandma@gmail.com","name":"yourfitgrandma@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello yourfitgrandma@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Haley Biale<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-21 18:14:35] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1d5b31e0-2ffa-11ef-bf71-525400ae9113.1903c01e3fe","object":"email"} [2024-06-21 18:17:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 18:17:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 18:18:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 18:18:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 18:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 18:18:42] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 18:19:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:19:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:21:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:21:27] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:21:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:21:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 18:21:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:21:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 18:21:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:21:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 18:21:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:21:37] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:21:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 18:21:42] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 18:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:21:45] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 18:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-21 18:21:45] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 18:21:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:21:53] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 18:21:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:21:53] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 18:21:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:21:53] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 18:23:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-21 18:23:32] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 18:23:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:23:52] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 18:23:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-21 18:23:52] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 18:25:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:25:27] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:53:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:53:57] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 18:53:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:53:57] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 18:53:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:53:57] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 18:54:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:54:24] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:55:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:55:12] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 18:55:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:55:12] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 18:55:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:55:12] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 18:55:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-21 18:55:17] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 172 ) [2024-06-21 18:55:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:55:19] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 18:55:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:55:19] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 18:55:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:55:19] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 18:56:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-21 18:56:34] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 172 ) [2024-06-21 18:56:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:56:39] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 18:56:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:56:39] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 18:56:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:56:39] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 18:58:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 18:58:02] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 18:58:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:58:57] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 18:58:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:58:57] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 18:58:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:58:57] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 18:59:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 18:59:33] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 18:59:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-21 18:59:33] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 19:01:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:01:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 19:01:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-21 19:01:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 5 ) [2024-06-21 19:01:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:01:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 19:01:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-21 19:01:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 5 ) [2024-06-21 19:02:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:02:11] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 19:02:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-21 19:02:11] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 19:02:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:02:13] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 19:02:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-21 19:02:13] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 5 ) [2024-06-21 19:02:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:02:14] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 19:02:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-21 19:02:14] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 5 ) [2024-06-21 19:02:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:02:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 19:02:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-21 19:02:29] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 19:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:02:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 19:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-21 19:02:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 5 ) [2024-06-21 19:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:02:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 19:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-21 19:02:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 5 ) [2024-06-21 19:02:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:02:42] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 19:02:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-21 19:02:42] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 19:02:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-21 19:02:52] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 287 ) [2024-06-21 19:02:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 19:02:52] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 19:02:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:02:53] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 19:02:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:02:54] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 19:02:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:02:54] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 19:02:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:02:59] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 19:02:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-21 19:02:59] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 19:04:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 19:04:08] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 19:04:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:04:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 19:04:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:04:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 19:04:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:04:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 19:05:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 19:05:13] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 19:05:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:14] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 19:05:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:14] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 19:05:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:14] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 19:05:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-21 19:05:45] local.DEBUG: Values for Sql:Array ( [0] => 288 ) [2024-06-21 19:05:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:45] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 19:05:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:45] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 19:05:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:45] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 19:05:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-21 19:05:47] local.DEBUG: Values for Sql:Array ( [0] => 287 ) [2024-06-21 19:05:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:47] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 19:05:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:47] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 19:05:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:47] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 19:05:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-21 19:05:48] local.DEBUG: Values for Sql:Array ( [0] => 286 ) [2024-06-21 19:05:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:49] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 19:05:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:49] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 19:05:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:05:49] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 19:05:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-21 19:05:59] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 286 ) [2024-06-21 19:06:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-21 19:06:06] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 286 ) [2024-06-21 19:13:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 19:13:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 19:14:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 19:14:11] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 19:14:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 19:14:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 19:18:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 19:18:29] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 19:19:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:19:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 19:19:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:19:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 19:19:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:19:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-21 19:19:49] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-21 19:20:31] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-21 19:20:41] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"yourfitgrandma@gmail.com","name":"Tricia Goldsmith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Tricia Goldsmith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Say it, clap it, show it<\\/li>\\n <li><strong>Assigned By:<\\/strong> Haley Biale<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-21 19:20:41] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.596856a0-3003-11ef-b209-52540064429e.1903c3e690a","object":"email"} [2024-06-21 19:20:41] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 291 [2024-06-21 19:20:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-21 19:20:53] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 201 ) [2024-06-21 19:20:53] local.DEBUG: Current Balance: 0 [2024-06-21 19:21:16] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-21 19:21:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-21 19:21:29] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 201 ) [2024-06-21 19:21:29] local.DEBUG: Current Balance: 0 [2024-06-21 19:22:02] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"yourfitgrandma@gmail.com","name":"Tricia Goldsmith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Tricia Goldsmith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Decode, Map & Read<\\/li>\\n <li><strong>Assigned By:<\\/strong> Haley Biale<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-21 19:22:02] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.89df90a0-3003-11ef-bf71-525400ae9113.1903c3fa6aa","object":"email"} [2024-06-21 19:22:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 19:22:19] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-21 19:22:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-21 19:22:19] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-21 19:22:29] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-21 19:23:43] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-21 19:23:55] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-21 19:24:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 19:24:23] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 19:25:37] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-21 20:12:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-21 20:12:49] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-21 20:12:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 20:12:50] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-21 20:12:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 20:12:50] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-21 20:12:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-21 20:12:50] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-22 03:40:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 03:40:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 03:40:44] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-22 03:40:44] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-22 03:42:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-22 03:42:09] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 283 ) [2024-06-22 03:50:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 03:50:46] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 03:50:54] local.DEBUG: task visible_to: [2024-06-22 03:50:59] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 03:51:02] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 03:51:09] local.DEBUG: task visible_to: [2024-06-22 03:51:27] local.DEBUG: task visible_to: [2024-06-22 03:53:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 03:53:20] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 03:53:40] local.DEBUG: task visible_to: [2024-06-22 03:53:42] local.DEBUG: task visible_to: [2024-06-22 03:53:44] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 03:53:46] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 03:53:49] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 03:55:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 03:55:48] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-22 03:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 03:55:51] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-22 03:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 03:55:51] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-22 03:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 03:55:51] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-22 03:57:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 03:57:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-22 03:57:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 03:57:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-22 03:57:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 03:57:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-22 04:49:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 04:49:44] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-22 04:53:26] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"keltneraa@gmail.com","name":"Penelope Biale"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Penelope Biale,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">85011<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-22 04:53:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5cb09570-3053-11ef-b209-52540064429e.1903e4ac847","object":"email"} [2024-06-22 04:53:45] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 415 [2024-06-22 04:54:22] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"haleybiale@gmail.com","name":"Haley Biale"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>65429<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-22 04:54:23] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7e38b880-3053-11ef-8935-525400d4bb1c.1903e4ba408","object":"email"} [2024-06-22 04:54:40] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 291 [2024-06-22 04:55:06] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"haleybiale@gmail.com","name":"Haley Biale"}}],"subject":"Password Reset Successful - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset Successful - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset Successful<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Haley Biale,<\\/p>\\n <p>Your password has been successfully reset for your Coins for College account.<\\/p>\\n <p>If you did not initiate this password reset or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-22 04:55:07] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.987e7d60-3053-11ef-a939-525400cbcb5e.1903e4c5036","object":"email"} [2024-06-22 04:55:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 04:55:43] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-22 04:57:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 04:57:20] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-22 04:57:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 04:57:39] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => -1 ) [2024-06-22 04:57:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 04:57:39] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 1 [13] => 291 [14] => -1 ) [2024-06-22 04:57:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 04:57:39] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 [12] => 291 [13] => -1 ) [2024-06-22 04:58:18] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"keltneraa@gmail.com","name":"keltneraa@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello keltneraa@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Haley Biale<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-22 04:58:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0b08d8d0-3054-11ef-b209-52540064429e.1903e4f3edd","object":"email"} [2024-06-22 05:01:17] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"dominicbiale@gmail.com","name":"Dominic Biale"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dominic Biale,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">68076<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-22 05:01:18] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.759acc80-3054-11ef-8935-525400d4bb1c.1903e51f948","object":"email"} [2024-06-22 05:01:35] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 416 [2024-06-22 05:01:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:01:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:02:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:02:30] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:02:30] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:02:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:02:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:02:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:02:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:02:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:02:42] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:02:45] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:02:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:02:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:02:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:02:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:02:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:02:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:02:57] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:02:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:02:57] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:02:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:02:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:02:59] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:03:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:03:01] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:03:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:03:01] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:03:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:03:01] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:03:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:03:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:03:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:03:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:03:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:03:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:03:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:03:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:03:36] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 05:03:42] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 05:03:46] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 05:03:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:03:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:04:00] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 05:04:05] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 05:04:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:04:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:04:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:04:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:04:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 05:04:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:04:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:04:16] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:04:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:04:16] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:04:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:04:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:04:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:04:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:04:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-22 05:04:19] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 173 ) [2024-06-22 05:04:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:04:25] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:04:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:04:25] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:04:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:04:31] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:04:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:04:31] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:04:31] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 05:04:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 05:04:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-22 05:04:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-22 05:04:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 05:04:40] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 05:04:47] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 06:30:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 06:30:26] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 06:30:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 06:30:50] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 06:31:20] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 06:31:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 06:36:39] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 06:36:39] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 ) [2024-06-22 06:36:55] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 06:36:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 06:37:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 06:37:28] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-22 06:37:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 06:37:43] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-22 06:37:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 06:37:48] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-22 06:38:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 06:38:24] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 06:38:26] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 06:38:26] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 06:40:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 06:40:48] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 06:40:51] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 06:40:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 06:40:58] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 06:40:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 06:48:27] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 06:48:27] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 06:48:28] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 06:48:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 06:48:29] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 06:48:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 06:58:35] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 06:58:35] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 [2] => %Stepped% ) [2024-06-22 07:05:03] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-22 09:18:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 09:18:25] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 09:18:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 09:18:51] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 09:19:02] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:19:02] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 09:19:36] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:19:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 09:20:13] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:20:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %test% ) [2024-06-22 09:20:21] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:20:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 09:21:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 09:21:12] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 09:21:13] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:21:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 09:22:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 09:22:21] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 09:22:55] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:22:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 09:23:02] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:23:02] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Stepped% ) [2024-06-22 09:23:12] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:23:12] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Stepped% ) [2024-06-22 09:23:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 09:23:48] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 09:23:49] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:23:49] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 09:23:56] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:23:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Test% ) [2024-06-22 09:25:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 09:25:13] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 09:25:14] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:25:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 09:25:25] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:25:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Test% ) [2024-06-22 09:25:36] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:25:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Test% ) [2024-06-22 09:25:38] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:25:38] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 09:32:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 09:32:03] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 09:35:17] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:35:17] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 09:35:24] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:35:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Test% ) [2024-06-22 09:35:28] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 09:35:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 10:16:11] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 10:16:11] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 10:16:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 10:16:11] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 10:16:22] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 10:16:22] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Test% ) [2024-06-22 10:16:33] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 10:16:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Oo% ) [2024-06-22 10:25:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 10:25:13] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 10:26:08] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 10:26:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 10:26:13] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 10:26:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Test% ) [2024-06-22 10:26:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 10:26:43] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 10:27:04] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 10:27:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 10:27:08] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 10:27:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Test% ) [2024-06-22 10:36:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 10:36:26] local.DEBUG: Values for Sql:Array ( [0] => 206 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 258 ) [2024-06-22 10:54:51] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 10:54:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => be1be691-4e40-4ea0-b765-3502829f0f68 [2] => 2 ) [2024-06-22 12:23:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 12:23:58] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 12:24:00] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 12:24:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 12:26:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 12:26:46] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 12:26:47] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-22 12:26:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-22 12:33:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 12:33:34] local.DEBUG: Values for Sql:Array ( [0] => 297 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 361 ) [2024-06-22 12:33:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 12:33:34] local.DEBUG: Values for Sql:Array ( [0] => 297 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 361 ) [2024-06-22 12:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 12:33:44] local.DEBUG: Values for Sql:Array ( [0] => 297 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 361 [8] => -1 ) [2024-06-22 12:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 12:33:44] local.DEBUG: Values for Sql:Array ( [0] => 297 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 361 [8] => 1 [9] => 361 [10] => -1 ) [2024-06-22 12:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-22 12:33:44] local.DEBUG: Values for Sql:Array ( [0] => 297 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 361 [8] => 361 [9] => -1 ) [2024-06-22 12:33:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 12:33:59] local.DEBUG: Values for Sql:Array ( [0] => 297 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 361 ) [2024-06-22 12:58:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 12:58:55] local.DEBUG: Values for Sql:Array ( [0] => 311 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 376 ) [2024-06-22 12:59:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 12:59:18] local.DEBUG: Values for Sql:Array ( [0] => 311 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 376 ) [2024-06-22 14:22:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 14:22:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 14:22:34] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 14:22:37] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 14:22:39] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 14:22:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 14:22:43] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 14:22:47] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 14:22:51] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 14:22:53] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 14:22:55] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 18:12:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 18:12:11] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 18:12:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 18:12:44] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-22 18:13:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-22 18:13:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 291 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94518 ) [2024-06-22 18:14:10] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"keltneraa@gmail.com","name":"Penelope Biale"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Penelope Biale,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMind: Say it, clap it, show it<\\/li>\\n <li><strong>Assigned By:<\\/strong> Haley Biale<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-22 18:14:11] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3964ad70-30c3-11ef-94bb-525400fa05f6.1904127e1c7","object":"email"} [2024-06-22 18:15:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 18:15:04] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 18:15:16] local.DEBUG: task visible_to: GLOBAL [2024-06-22 18:15:19] local.DEBUG: task visible_to: GLOBAL [2024-06-22 18:15:21] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 18:15:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-22 18:15:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-22 18:15:35] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 18:15:38] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 18:15:40] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 18:15:43] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 18:15:44] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 18:15:48] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-22 18:15:50] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-23 02:57:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 02:57:52] local.DEBUG: Values for Sql:Array ( [0] => 164 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 217 ) [2024-06-23 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-23 08:36:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-23 08:36:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-23 14:49:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 14:49:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-23 14:49:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 14:49:12] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-23 14:49:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 14:49:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-23 14:49:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 14:49:32] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-23 14:49:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 14:49:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-23 14:49:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-23 14:49:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-23 14:49:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-23 14:49:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-23 14:49:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-23 14:49:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-23 14:49:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-23 14:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 14:49:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-23 14:49:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 14:49:35] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-23 15:51:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 15:51:24] local.DEBUG: Values for Sql:Array ( [0] => 270 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 331 ) [2024-06-23 20:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-23 20:18:42] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-23 20:18:55] local.DEBUG: task visible_to: [2024-06-23 20:19:42] local.DEBUG: task visible_to: [2024-06-23 20:19:42] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-06-23 20:19:43] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 275 [2024-06-23 20:19:43] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fmfegurgur@gmail.com","name":"Francisco Fegurgur"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Francisco Fegurgur,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Yardwork<\\/li>\\n <li><strong>Assigned To:<\\/strong> Emelia Fegurgur<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-23 20:19:43] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ed55e2b0-319d-11ef-a939-525400cbcb5e.19046c12c5b","object":"email"} [2024-06-23 20:19:43] local.DEBUG: task visible_to: [2024-06-23 20:19:50] local.DEBUG: task visible_to: [2024-06-23 20:19:55] local.DEBUG: task visible_to: [2024-06-23 20:19:55] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-06-23 20:19:55] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 275 [2024-06-23 20:19:55] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fmfegurgur@gmail.com","name":"Francisco Fegurgur"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Francisco Fegurgur,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Daily attendance<\\/li>\\n <li><strong>Assigned To:<\\/strong> Emelia Fegurgur<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-23 20:19:55] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f4b71380-319d-11ef-ad2b-5254000b1a0e.19046c15cb8","object":"email"} [2024-06-23 20:19:56] local.DEBUG: task visible_to: [2024-06-23 20:20:10] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-23 20:21:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 20:21:12] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-23 20:21:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-23 20:21:13] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-23 20:21:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-23 20:21:21] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 208 ) [2024-06-23 20:21:21] local.DEBUG: Current Balance: 100 [2024-06-23 20:21:28] local.DEBUG: task visible_to: [2024-06-23 20:21:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-23 20:21:50] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-23 20:21:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-23 20:21:58] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-23 20:38:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 20:38:30] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-23 20:38:37] local.DEBUG: Review allowed to UserId: 275 for ClaimId:41, Reason: User is the owner of the group, and task belongs to the same group [2024-06-23 20:38:37] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Yardwork<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-23 20:38:37] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.914dd420-31a0-11ef-8935-525400d4bb1c.19046d27a62","object":"email"} [2024-06-23 20:38:37] local.INFO: 0.10000000 points allocated for CLAIM_REVIEW_BY_PARENT to 275 [2024-06-23 20:38:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-23 20:38:44] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-23 22:30:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 22:30:55] local.DEBUG: Values for Sql:Array ( [0] => 223 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 281 [8] => -1 ) [2024-06-23 22:30:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 22:30:55] local.DEBUG: Values for Sql:Array ( [0] => 223 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 281 [8] => 1 [9] => 281 [10] => -1 ) [2024-06-23 22:30:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-23 22:30:55] local.DEBUG: Values for Sql:Array ( [0] => 223 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 281 [8] => 281 [9] => -1 ) [2024-06-24 05:53:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-24 05:53:47] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-24 05:54:06] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 05:54:06] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-24 05:55:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-24 05:55:27] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-24 05:55:29] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 05:55:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-24 05:58:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-24 05:58:59] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-24 05:59:00] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 05:59:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-24 05:59:04] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 05:59:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => be1be691-4e40-4ea0-b765-3502829f0f68 [2] => 2 ) [2024-06-24 06:00:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-24 06:00:51] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-24 06:00:53] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 06:00:53] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-24 06:00:57] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 06:00:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => be1be691-4e40-4ea0-b765-3502829f0f68 [2] => 2 ) [2024-06-24 06:01:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-24 06:01:47] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-24 06:01:49] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 06:01:49] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-24 06:01:53] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 06:01:53] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => be1be691-4e40-4ea0-b765-3502829f0f68 [2] => 2 ) [2024-06-24 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-24 07:10:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-24 07:10:31] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-24 07:12:18] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Feed Dog<\\/li>\\n <li><strong>Assigned By:<\\/strong> Francisco Fegurgur<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-24 07:12:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.18160a10-31f9-11ef-bf71-525400ae9113.1904916a531","object":"email"} [2024-06-24 07:12:19] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 275 [2024-06-24 07:13:17] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"franknmeli@gmail.com","name":"Emelia Fegurgur"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Emelia Fegurgur,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Complete a lesson on Khan Academy<\\/li>\\n <li><strong>Assigned By:<\\/strong> Francisco Fegurgur<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-24 07:13:17] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3b05fa80-31f9-11ef-ad2b-5254000b1a0e.19049178a28","object":"email"} [2024-06-24 07:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-24 07:13:26] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-24 08:58:54] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 08:58:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-24 09:22:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-24 09:22:45] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-24 09:22:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-24 09:22:55] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-24 09:22:56] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 09:22:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-24 09:23:01] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 09:23:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 272b240d-51b7-4789-922b-da8f5f10816b [2] => 2 ) [2024-06-24 09:24:10] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 09:24:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => be1be691-4e40-4ea0-b765-3502829f0f68 [2] => 2 ) [2024-06-24 09:24:18] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 09:24:18] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => be1be691-4e40-4ea0-b765-3502829f0f68 [2] => 2 ) [2024-06-24 09:28:07] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 09:28:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => be1be691-4e40-4ea0-b765-3502829f0f68 [2] => 2 ) [2024-06-24 09:41:55] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-24 09:41:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => be1be691-4e40-4ea0-b765-3502829f0f68 [2] => 2 ) [2024-06-24 10:06:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-24 10:06:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-24 10:32:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-24 10:32:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-24 15:16:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-24 15:16:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-24 15:17:41] local.DEBUG: task visible_to: GLOBAL [2024-06-24 15:18:09] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-24 15:18:13] local.DEBUG: task visible_to: GLOBAL [2024-06-24 15:18:20] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-24 15:18:31] local.DEBUG: task visible_to: GLOBAL [2024-06-24 15:18:44] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-24 21:33:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-24 21:33:42] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-24 21:34:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-24 21:34:17] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-24 21:38:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-24 21:38:43] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 [8] => -1 ) [2024-06-24 21:38:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-24 21:38:43] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 [8] => 1 [9] => 371 [10] => -1 ) [2024-06-24 21:38:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-24 21:38:43] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 [8] => 371 [9] => -1 ) [2024-06-24 21:38:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-24 21:38:43] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 ) [2024-06-24 21:38:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-24 21:38:56] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 [8] => -1 ) [2024-06-24 21:38:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-24 21:38:56] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 [8] => 1 [9] => 371 [10] => -1 ) [2024-06-24 21:38:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-24 21:38:56] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 [8] => 371 [9] => -1 ) [2024-06-24 21:39:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-24 21:39:38] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 [8] => -1 ) [2024-06-24 21:39:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-24 21:39:38] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 [8] => 1 [9] => 371 [10] => -1 ) [2024-06-24 21:39:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-24 21:39:38] local.DEBUG: Values for Sql:Array ( [0] => 306 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 371 [8] => 371 [9] => -1 ) [2024-06-25 03:16:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 03:16:41] local.DEBUG: Values for Sql:Array ( [0] => 219 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 276 [8] => -1 ) [2024-06-25 03:16:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 03:16:41] local.DEBUG: Values for Sql:Array ( [0] => 219 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 276 [8] => 1 [9] => 276 [10] => -1 ) [2024-06-25 03:16:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 03:16:41] local.DEBUG: Values for Sql:Array ( [0] => 219 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 276 [8] => 276 [9] => -1 ) [2024-06-25 03:16:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 03:16:43] local.DEBUG: Values for Sql:Array ( [0] => 219 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 276 [8] => -1 ) [2024-06-25 03:16:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 03:16:43] local.DEBUG: Values for Sql:Array ( [0] => 219 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 276 [8] => 1 [9] => 276 [10] => -1 ) [2024-06-25 03:16:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 03:16:43] local.DEBUG: Values for Sql:Array ( [0] => 219 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 276 [8] => 276 [9] => -1 ) [2024-06-25 03:36:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 03:36:39] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 386 ) [2024-06-25 05:02:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 05:02:20] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 ) [2024-06-25 05:02:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 05:02:25] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => -1 ) [2024-06-25 05:02:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 05:02:25] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => 1 [9] => 252 [10] => -1 ) [2024-06-25 05:02:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 05:02:25] local.DEBUG: Values for Sql:Array ( [0] => 201 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 252 [8] => 252 [9] => -1 ) [2024-06-25 05:56:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 05:56:47] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 06:00:27] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 06:00:27] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 06:00:40] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 06:00:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 272b240d-51b7-4789-922b-da8f5f10816b [2] => 2 ) [2024-06-25 06:57:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 06:57:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-25 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-25 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 310, 76, PENDING, ?, ?, ?, 2024-06-25 07:05:02, 2024-06-25 07:05:02)) [2024-06-25 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(489): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(433): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-06-25 09:55:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 09:55:23] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 10:29:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 10:29:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-25 10:29:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 10:29:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-25 10:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 10:29:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-25 10:30:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 10:30:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-25 10:30:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 10:30:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-25 10:30:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 10:30:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-25 10:30:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 10:30:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-25 10:30:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 10:30:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-25 10:30:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-25 10:30:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 172 ) [2024-06-25 11:33:39] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 11:33:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 11:33:44] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 11:33:44] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => be1be691-4e40-4ea0-b765-3502829f0f68 [2] => 2 ) [2024-06-25 11:34:28] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 11:34:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 272b240d-51b7-4789-922b-da8f5f10816b [2] => 2 ) [2024-06-25 11:38:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 11:38:23] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 11:39:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 11:39:34] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 11:39:36] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 11:39:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 11:39:42] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 11:39:42] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 272b240d-51b7-4789-922b-da8f5f10816b [2] => 2 ) [2024-06-25 11:40:24] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 11:40:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => be1be691-4e40-4ea0-b765-3502829f0f68 [2] => 2 ) [2024-06-25 11:41:13] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 11:41:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 272b240d-51b7-4789-922b-da8f5f10816b [2] => 2 ) [2024-06-25 11:52:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 11:52:23] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 11:52:25] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 11:52:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 11:52:28] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 11:52:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 272b240d-51b7-4789-922b-da8f5f10816b [2] => 2 ) [2024-06-25 12:22:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 12:22:49] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 12:22:52] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 12:22:52] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 12:23:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 12:23:02] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-25 12:23:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-25 12:23:02] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 12:23:05] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 12:23:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 12:23:09] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 12:23:09] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Test% ) [2024-06-25 12:23:14] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 12:23:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 272b240d-51b7-4789-922b-da8f5f10816b [2] => 2 ) [2024-06-25 12:23:43] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 12:23:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 13:04:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 13:04:30] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 13:04:31] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 13:04:31] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 13:06:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 13:06:46] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 13:06:48] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 13:06:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 13:08:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 13:08:25] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 13:08:25] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 13:08:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 13:09:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 13:09:31] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 13:09:32] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 13:09:32] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 13:21:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 13:21:19] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 13:21:22] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 13:21:22] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 13:22:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 13:22:02] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 13:22:03] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-25 13:22:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-25 14:30:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 14:30:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 14:31:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 14:31:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 14:31:39] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-25 15:53:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 15:53:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 18:01:21] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"godhungrygirl@gmail.com","name":"Amanda Hendricks"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Amanda Hendricks,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">62280<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-25 18:01:22] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ee3694b0-331c-11ef-b85f-525400e18d05.190508f397b","object":"email"} [2024-06-25 18:02:01] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"godhungry77@gmail.com","name":"Joshua Hendricks"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Joshua Hendricks,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">78227<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-25 18:02:01] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.05c576f0-331d-11ef-964a-5254000b1a0e.190508fd3df","object":"email"} [2024-06-25 18:02:27] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 418 [2024-06-25 18:02:44] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 417 [2024-06-25 18:03:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 18:03:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 18:03:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 18:03:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 18:04:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 18:04:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-25 18:04:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-25 18:04:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 18:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 18:04:24] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-25 18:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-25 18:04:24] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 18:04:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 18:04:59] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 18:05:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 18:05:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-25 18:05:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-25 18:05:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 18:05:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 18:05:26] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-25 18:05:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-25 18:05:26] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 19:25:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 19:25:09] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-25 19:25:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 19:25:09] local.DEBUG: Values for Sql:Array ( [0] => 295 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 359 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94509 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-25 20:22:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 20:22:51] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-25 20:23:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:23:03] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-25 20:23:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:23:03] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-25 20:23:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:23:03] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-25 20:23:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 20:23:43] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 20:23:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 20:23:46] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 20:23:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-25 20:23:47] local.DEBUG: Values for Sql:Array ( [0] => 125 ) [2024-06-25 20:23:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:23:48] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-25 20:23:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:23:48] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-25 20:23:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:23:48] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-25 20:23:51] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-25 20:23:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-25 20:23:51] local.DEBUG: Values for Sql:Array ( [0] => 125 ) [2024-06-25 20:23:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:23:52] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-25 20:23:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:23:52] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-25 20:23:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:23:52] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-25 20:23:53] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-25 20:23:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 20:23:58] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 20:24:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-25 20:24:04] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 20:24:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:24:06] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-25 20:24:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-25 20:24:06] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 20:24:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-25 20:24:10] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 287 ) [2024-06-25 20:24:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:24:11] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-25 20:24:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-25 20:24:11] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-25 20:24:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-25 20:24:54] local.DEBUG: Values for Sql:Array ( [0] => 173 ) [2024-06-25 20:24:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:24:54] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-25 20:24:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:24:55] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-25 20:24:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:24:55] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-25 20:29:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:29:12] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => -1 ) [2024-06-25 20:29:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:29:12] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 1 [9] => 110 [10] => -1 ) [2024-06-25 20:29:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 20:29:12] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 [8] => 110 [9] => -1 ) [2024-06-25 20:30:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 20:30:03] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 110 ) [2024-06-25 21:22:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 21:22:42] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-25 21:22:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 21:22:42] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-25 21:22:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:22:43] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-25 21:22:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:22:43] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-25 21:22:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:22:43] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-25 21:22:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:22:52] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-25 21:22:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:22:52] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-25 21:22:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:22:52] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-25 21:22:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-25 21:22:57] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 128 ) [2024-06-25 21:23:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 21:23:01] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-25 21:23:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:23:35] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-25 21:23:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:23:35] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-25 21:23:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:23:35] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-25 21:23:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:23:39] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-25 21:23:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:23:39] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-25 21:23:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:23:39] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-25 21:24:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:24:19] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-25 21:24:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:24:19] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-25 21:24:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:24:19] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-25 21:24:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 21:24:24] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 ) [2024-06-25 21:24:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:24:45] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-25 21:24:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:24:45] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-25 21:24:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:24:45] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-25 21:24:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-25 21:24:51] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 171 ) [2024-06-25 21:25:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:25:16] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-25 21:25:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:25:16] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-25 21:25:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:25:16] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-25 21:25:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:25:18] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => -1 ) [2024-06-25 21:25:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:25:18] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 1 [9] => 162 [10] => -1 ) [2024-06-25 21:25:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-25 21:25:18] local.DEBUG: Values for Sql:Array ( [0] => 101 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 162 [8] => 162 [9] => -1 ) [2024-06-25 21:59:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 21:59:36] local.DEBUG: Values for Sql:Array ( [0] => 316 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 381 ) [2024-06-25 23:23:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 23:23:33] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-25 23:23:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-25 23:23:34] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-26 01:44:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 01:44:11] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 224 ) [2024-06-26 03:39:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 03:39:09] local.DEBUG: Values for Sql:Array ( [0] => 252 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 313 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 94565 [12] => Contra Costa [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Contra Costa ) [2024-06-26 03:52:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 03:52:40] local.DEBUG: Values for Sql:Array ( [0] => 308 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 373 ) [2024-06-26 04:19:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 04:19:09] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-26 04:19:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 04:19:13] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 275 ) [2024-06-26 04:26:23] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"langeheather@hotmail.com","name":"Heather Bush"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Heather Bush,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">48383<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 04:26:24] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3f4a46b0-3374-11ef-867d-525400ae9113.19052cb769b","object":"email"} [2024-06-26 04:27:02] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 419 [2024-06-26 04:28:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 04:28:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:28:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 04:28:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:28:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 04:28:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:28:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 04:28:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-26 04:28:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-26 04:28:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:29:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 04:29:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:29:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 04:29:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-26 04:29:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-26 04:29:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:31:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 04:31:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:31:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 04:31:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-26 04:31:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-26 04:31:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:31:55] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-26 04:32:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 04:32:25] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:32:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 04:32:39] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => 1 ) [2024-06-26 04:32:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-26 04:32:39] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:34:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 04:34:16] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:34:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 04:34:50] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 04:35:32] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-26 04:58:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 04:58:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 04:59:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 04:59:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 04:59:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 04:59:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 04:59:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 04:59:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 05:09:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 05:09:00] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 05:09:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 05:09:44] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 05:12:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 05:12:36] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 05:16:48] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 05:16:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 05:20:02] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 05:20:02] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 ) [2024-06-26 05:47:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 05:47:41] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-26 05:48:26] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"Kartik Gosiya"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kartik Gosiya,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> New task<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 05:48:27] local.ERROR: failure in sending email: array ( 'code' => 'TM_3501', 'details' => array ( 0 => array ( 'code' => 'LE_101', 'message' => 'Credits expired', ), ), 'message' => 'Unprocessable Entity', 'request_id' => '2d6f.4d0414f5faee03b5.m1.b57b8910-337f-11ef-80b3-52540064429e.19053169421', ) [2024-06-26 05:48:27] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 87 [2024-06-26 05:49:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:49:13] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => -1 ) [2024-06-26 05:49:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:49:13] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 1 [18] => 87 [19] => -1 ) [2024-06-26 05:49:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:49:13] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 87 [18] => -1 ) [2024-06-26 05:49:48] local.DEBUG: Product Image Details: Array ( [product_id] => 289 [image_name] => 3997392171719380988.png ) [2024-06-26 05:49:48] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 87 [2024-06-26 05:49:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:49:49] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => -1 ) [2024-06-26 05:49:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:49:49] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 1 [18] => 87 [19] => -1 ) [2024-06-26 05:49:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:49:49] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 87 [18] => -1 ) [2024-06-26 05:52:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 05:52:04] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-26 05:54:17] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"Kartik Gosiya"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kartik Gosiya,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> task first<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 05:54:18] local.ERROR: failure in sending email: array ( 'code' => 'TM_3501', 'details' => array ( 0 => array ( 'code' => 'LE_101', 'message' => 'Credits expired', ), ), 'message' => 'Unprocessable Entity', 'request_id' => '2d6f.4d0414f5faee03b5.m1.86cff1e0-3380-11ef-be2f-525400cbcb5e.190531beffe', ) [2024-06-26 05:54:18] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 87 [2024-06-26 05:55:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:55:15] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => -1 ) [2024-06-26 05:55:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:55:15] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 1 [18] => 87 [19] => -1 ) [2024-06-26 05:55:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:55:15] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 87 [18] => -1 ) [2024-06-26 05:55:45] local.DEBUG: Product Image Details: Array ( [product_id] => 290 [image_name] => 20973691271719381344.jpeg ) [2024-06-26 05:55:45] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 87 [2024-06-26 05:55:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:55:45] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => -1 ) [2024-06-26 05:55:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:55:45] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 1 [18] => 87 [19] => -1 ) [2024-06-26 05:55:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:55:45] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 87 [18] => -1 ) [2024-06-26 05:58:08] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 87 [2024-06-26 05:58:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:58:10] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => -1 ) [2024-06-26 05:58:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:58:10] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 1 [18] => 87 [19] => -1 ) [2024-06-26 05:58:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 05:58:10] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States [17] => 87 [18] => -1 ) [2024-06-26 06:34:19] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 06:34:19] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 1 ) [2024-06-26 06:35:08] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 06:35:08] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => {document_uuid} [2] => 1 ) [2024-06-26 06:35:24] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 06:35:24] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => 45f44906-a222-4957-94e3-10e711e09b50 [2] => 1 ) [2024-06-26 06:43:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 06:43:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:43:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:43:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 06:43:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:43:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 06:43:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:43:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 06:45:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 06:45:44] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:45:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:45:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 06:45:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:45:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 06:45:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:45:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 06:47:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:47:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 06:47:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:47:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 06:47:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:47:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 06:48:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 06:48:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:48:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:48:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 06:48:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:48:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 06:48:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:48:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 06:49:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:49:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 06:49:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:49:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 06:49:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:49:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 06:51:04] local.DEBUG: Product Image Details: Array ( [product_id] => 292 [image_name] => 10493720141719384663.jpeg ) [2024-06-26 06:51:04] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 30 [2024-06-26 06:51:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:51:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 06:51:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:51:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 06:51:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:51:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 06:55:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 06:55:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:56:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:56:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 06:56:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:56:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 06:56:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:56:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 06:57:02] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 30 [2024-06-26 06:57:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:57:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 06:57:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:57:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 06:57:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:57:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 06:57:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 06:57:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:57:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 06:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:57:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 06:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:57:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 06:57:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 06:57:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:57:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 06:57:52] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:57:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 06:57:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:57:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 06:57:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:57:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 06:57:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:58:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 06:58:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:58:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 06:58:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 06:58:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:58:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 06:58:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:58:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 06:58:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:58:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 06:58:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 06:58:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 293 ) [2024-06-26 06:58:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 06:58:37] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 293 ) [2024-06-26 06:59:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 06:59:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 192 ) [2024-06-26 06:59:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:59:16] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 06:59:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:59:16] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 06:59:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 06:59:16] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 06:59:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 06:59:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 07:00:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 07:00:02] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 07:00:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 07:00:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 07:00:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 07:00:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 07:00:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 07:00:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 07:01:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 07:01:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 07:02:18] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> test task1<\\/li>\\n <li><strong>Assigned By:<\\/strong> Sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 07:02:19] local.ERROR: failure in sending email: array ( 'code' => 'TM_3501', 'details' => array ( 0 => array ( 'code' => 'LE_101', 'message' => 'Credits expired', ), ), 'message' => 'Unprocessable Entity', 'request_id' => '2d6f.4d0414f5faee03b5.m1.07526b00-338a-11ef-b85f-525400e18d05.190535a35b0', ) [2024-06-26 07:02:19] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 30 [2024-06-26 07:03:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 07:03:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 07:04:38] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> test task1<\\/li>\\n <li><strong>Assigned By:<\\/strong> Sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 07:04:38] local.ERROR: failure in sending email: array ( 'code' => 'TM_3501', 'details' => array ( 0 => array ( 'code' => 'LE_101', 'message' => 'Credits expired', ), ), 'message' => 'Unprocessable Entity', 'request_id' => '2d6f.4d0414f5faee03b5.m1.5a7d9de0-338a-11ef-b85f-525400e18d05.190535c56be', ) [2024-06-26 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-26 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 314, 76, PENDING, ?, ?, ?, 2024-06-26 07:05:02, 2024-06-26 07:05:02)) [2024-06-26 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(489): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(433): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-06-26 07:05:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:05:02] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 292 ) [2024-06-26 07:05:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:05:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 292 ) [2024-06-26 07:05:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:05:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 192 ) [2024-06-26 07:05:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:05:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 293 ) [2024-06-26 07:05:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:05:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 293 ) [2024-06-26 07:05:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:05:56] local.DEBUG: Values for Sql:Array ( [0] => 293 ) [2024-06-26 07:06:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:06:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 293 ) [2024-06-26 07:08:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:08:36] local.DEBUG: Values for Sql:Array ( [0] => 293 ) [2024-06-26 07:08:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:08:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 293 ) [2024-06-26 07:08:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:08:45] local.DEBUG: Values for Sql:Array ( [0] => 293 ) [2024-06-26 07:08:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 07:08:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 07:14:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 07:14:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria ) [2024-06-26 07:14:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 07:14:06] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 07:14:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 07:14:06] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 07:14:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 07:14:06] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 07:15:47] local.DEBUG: Product Image Details: Array ( [product_id] => 294 [image_name] => 16303212371719386147.jpeg ) [2024-06-26 07:15:48] local.DEBUG: Product Image Details: Array ( [product_id] => 294 [image_name] => 10876549391719386147.jpeg ) [2024-06-26 07:15:48] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 30 [2024-06-26 07:15:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 07:15:49] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => -1 ) [2024-06-26 07:15:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 07:15:49] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 1 [18] => 30 [19] => -1 ) [2024-06-26 07:15:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 07:15:49] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 30 [18] => -1 ) [2024-06-26 07:16:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:16:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 294 ) [2024-06-26 07:16:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:16:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 294 ) [2024-06-26 07:16:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:16:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 294 ) [2024-06-26 07:16:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 07:16:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 30 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 00606 [12] => Algeria [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => Algeria [17] => 294 ) [2024-06-26 07:34:40] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <div>\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.svg\\" alt=\\"Download on the App Store\\" width=\\"123\\" style=\\"padding-bottom: 8px; padding-top:8px\\">\\n <\\/a>\\n <\\/div>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 07:34:40] local.ERROR: failure in sending email: array ( 'code' => 'TM_3501', 'details' => array ( 0 => array ( 'code' => 'LE_101', 'message' => 'Credits expired', ), ), 'message' => 'Unprocessable Entity', 'request_id' => '2d6f.4d0414f5faee03b5.m1.8c684130-338e-11ef-b251-525400f92481.1905377d4c3', ) [2024-06-26 07:38:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 07:38:02] local.DEBUG: Values for Sql:Array ( [0] => 163 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-26 07:39:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 07:39:19] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL [3] => GLOBAL_FOR_PARENT [4] => GLOBAL_FOR_PARENT_AND_CHILD [5] => SELECTED_PARENT [6] => USER [7] => 87 [8] => ZIPCODE_PARENT [9] => ZIPCODE_PARENT_AND_CHILD [10] => ZIPCODE [11] => 10115 [12] => United States [13] => COUNTRY_PARENT [14] => COUNTRY_PARENT_AND_CHILD [15] => COUNTRY [16] => United States ) [2024-06-26 09:10:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 09:10:32] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 09:10:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 09:10:34] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 09:10:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 09:10:34] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 09:10:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 09:10:34] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 10:32:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 10:32:22] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 11:15:47] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.gosiya.pro@gmail.com","name":"kartik.gosiya.pro@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.gosiya.pro@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Test group for invite\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Test group for invite<\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <div>\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.svg\\" alt=\\"Download on the App Store\\" width=\\"123\\" style=\\"padding-bottom: 8px; padding-top:8px\\">\\n <\\/a>\\n <\\/div>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 11:15:47] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.703e13d0-33ad-11ef-b251-525400f92481.1905442458d","object":"email"} [2024-06-26 11:43:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 11:43:31] local.DEBUG: Values for Sql:Array ( [0] => 340 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 11:43:57] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <div>\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"170\\" style=\\"padding:15px\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"250\\" >\\n <\\/a>\\n <\\/div>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 11:43:57] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5fb3c6a0-33b1-11ef-be2f-525400cbcb5e.190545c100a","object":"email"} [2024-06-26 11:46:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 11:46:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-26 11:49:14] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Test group for invite\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Test group for invite<\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Download the Coins For College app to accept the invitation:<\\/p>\\n\\n <div>\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"170\\" style=\\"padding:15px\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"250\\" >\\n <\\/a>\\n <\\/div>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 11:49:15] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1cf55490-33b2-11ef-8ded-525400fa05f6.1905460e859","object":"email"} [2024-06-26 12:01:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:01:29] local.DEBUG: Values for Sql:Array ( [0] => 340 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:01:59] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Test group for invite\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Test group for invite<\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Download the Coins For College app to accept the invitation:<\\/p>\\n\\n <div>\\n <!-- Android App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"170\\" style=\\"padding:15px\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"250\\" >\\n <\\/a>\\n <\\/div>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 12:02:00] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e4efd460-33b3-11ef-9ef4-525400d6cd4f.190546c94a6","object":"email"} [2024-06-26 12:03:01] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Test group for invite\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Test group for invite<\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Download the Coins For College app to accept the invitation:<\\/p>\\n\\n <div>\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"170\\" style=\\"padding:15px\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"250\\" >\\n <\\/a>\\n <\\/div>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 12:03:01] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.09629440-33b4-11ef-9ef4-525400d6cd4f.190546d8384","object":"email"} [2024-06-26 12:04:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:04:29] local.DEBUG: Values for Sql:Array ( [0] => 340 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:07:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:07:36] local.DEBUG: Values for Sql:Array ( [0] => 340 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 12:07:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:07:36] local.DEBUG: Values for Sql:Array ( [0] => 340 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 12:07:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:07:36] local.DEBUG: Values for Sql:Array ( [0] => 340 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 12:08:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:08:16] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:08:40] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.gosiya.pro.old@gmail.com","name":"Dhara"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dhara,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> test without image iPhone<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-26 12:08:41] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d3c1fb90-33b4-11ef-9ef4-525400d6cd4f.1905472b1c9","object":"email"} [2024-06-26 12:08:41] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 87 [2024-06-26 12:08:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:08:50] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:09:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:09:11] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 12:09:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:09:11] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 12:09:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:09:11] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 12:09:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:09:30] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:09:39] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:09:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:09:43] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 87 [2024-06-26 12:09:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:09:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 12:09:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:09:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 12:09:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:09:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 12:09:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:09:50] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:09:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:09:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:09:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:09:54] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:09:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:09:58] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:10:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:10:03] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:10:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:10:06] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 12:10:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:10:06] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 12:10:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:10:06] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 12:10:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:10:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 58 [17] => 412 [18] => 87 ) [2024-06-26 12:10:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:10:18] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 58 [17] => 412 [18] => 87 ) [2024-06-26 12:10:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:10:23] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 58 [17] => 412 [18] => 87 ) [2024-06-26 12:10:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:10:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 12:10:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:10:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 12:10:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:10:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 12:10:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:10:39] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 58 [17] => 412 [18] => 87 ) [2024-06-26 12:10:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:10:42] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:10:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:10:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 12:10:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:10:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 12:10:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:10:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 12:10:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:10:53] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 58 [17] => 412 [18] => 87 ) [2024-06-26 12:10:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:10:58] local.DEBUG: Values for Sql:Array ( [0] => 165 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:11:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:11:02] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:11:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:11:02] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 12:11:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:11:03] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 12:11:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:11:03] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 12:11:04] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:11:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:13:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:13:10] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:13:35] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 87 [2024-06-26 12:13:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:13:36] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 12:13:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:13:36] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 12:13:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:13:36] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 12:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:13:41] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:13:41] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:13:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:13:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:13:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:13:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:13:47] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:13:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:13:49] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:13:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:13:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:13:52] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:13:52] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:13:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:13:54] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 12:13:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:13:54] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 12:13:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:13:54] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 12:13:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:13:59] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 58 [17] => 412 [18] => 87 ) [2024-06-26 12:14:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:14:04] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 58 [17] => 412 [18] => 87 ) [2024-06-26 12:14:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 12:14:23] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 58 [17] => 412 [18] => 87 ) [2024-06-26 12:14:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:14:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 12:14:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:14:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 12:14:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:14:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 12:15:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:15:38] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-26 12:15:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:15:39] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 12:15:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:15:39] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 12:15:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:15:39] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 12:18:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:18:27] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:18:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:18:47] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:19:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:19:41] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:20:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:20:56] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:32:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:32:15] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:32:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:32:15] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:32:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:32:59] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:33:01] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:33:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:33:29] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:33:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:35:15] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:35:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:35:23] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:35:23] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:36:21] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:36:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:37:08] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:37:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:40:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:40:57] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:42:29] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:42:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:42:29] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:42:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:46:10] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:46:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Test% ) [2024-06-26 12:46:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:46:33] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:46:34] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:46:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:46:35] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:46:35] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:46:40] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:46:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Test% ) [2024-06-26 12:49:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:49:12] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:49:14] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:49:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:49:15] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:49:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:49:25] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:49:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:49:26] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:49:26] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:49:35] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:49:35] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Download% ) [2024-06-26 12:49:36] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:49:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:49:45] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:49:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:50:00] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:50:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:50:01] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:50:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:50:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:50:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-26 12:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:50:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 ) [2024-06-26 12:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:50:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 ) [2024-06-26 12:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:50:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 ) [2024-06-26 12:52:16] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:52:16] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:52:17] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:52:17] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:52:20] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:52:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:52:20] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:52:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:52:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:52:26] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:52:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:52:28] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-26 12:52:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-26 12:52:28] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:52:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:52:34] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-26 12:52:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-26 12:52:34] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:54:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:54:12] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-26 12:55:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 12:55:07] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 12:55:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:55:09] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-26 12:55:09] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:09] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:55:10] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:55:16] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:16] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:55:17] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:17] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:55:24] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Download% ) [2024-06-26 12:55:24] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Download% ) [2024-06-26 12:55:24] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:55:24] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:55:33] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Download% ) [2024-06-26 12:55:33] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:55:40] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %Test% ) [2024-06-26 12:55:43] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-26 12:55:44] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-26 12:55:44] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-26 12:57:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 12:57:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-26 12:57:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:57:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 ) [2024-06-26 12:57:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:57:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 ) [2024-06-26 12:57:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 12:57:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 ) [2024-06-26 13:03:12] local.DEBUG: Request Object:Array ( [product_sp] => 450 [product_type] => REWARD [description] => Dialer’s [expires_on] => [product_name] => test abc [repeate_after_days] => null [requirement_for_claim] => SP [task_id] => [visible_in_family_store] => 1 [product_category_id] => 1 ) [2024-06-26 13:03:12] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 87 [2024-06-26 13:03:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:03:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 13:03:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:03:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 13:03:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:03:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 13:05:19] local.DEBUG: Request Object:Array ( [product_name] => Dhahran [task_id] => [description] => Whale [repeate_after_days] => null [product_sp] => 150 [expires_on] => [product_type] => REWARD [visible_in_family_store] => 1 [product_category_id] => 1 [requirement_for_claim] => SP ) [2024-06-26 13:05:19] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 87 [2024-06-26 13:05:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:05:20] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 13:05:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:05:20] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 13:05:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:05:20] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 13:05:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:05:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 13:05:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:05:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 13:05:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:05:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 13:06:43] local.DEBUG: Request Object:Array ( [product_name] => rituals [product_sp] => 67 [expires_on] => [product_category_id] => 1 [product_type] => REWARD [description] => Shaman [repeate_after_days] => null [requirement_for_claim] => SP [visible_in_family_store] => 1 [task_id] => ) [2024-06-26 13:06:43] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 87 [2024-06-26 13:06:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:06:44] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 13:06:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:06:44] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 13:06:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:06:44] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 13:08:47] local.DEBUG: Request Object:Array ( [product_name] => DJ and [product_sp] => 56 [expires_on] => [description] => Rye [repeate_after_days] => null [visible_in_family_store] => 1 [task_id] => [product_category_id] => 1 [requirement_for_claim] => SP [product_type] => REWARD ) [2024-06-26 13:08:47] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 87 [2024-06-26 13:08:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:08:48] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 13:08:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:08:48] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 13:08:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:08:48] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 13:10:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-26 13:10:27] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 58 [17] => 412 [18] => 87 ) [2024-06-26 13:10:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-26 13:10:31] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 302 ) [2024-06-26 13:10:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:10:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-26 13:10:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:10:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-26 13:10:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 13:10:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-26 15:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 15:16:29] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 ) [2024-06-26 15:16:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 15:16:43] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 [7] => -1 ) [2024-06-26 15:16:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 15:16:43] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 [7] => 1 [8] => 286 [9] => -1 ) [2024-06-26 15:16:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-26 15:16:43] local.DEBUG: Values for Sql:Array ( [0] => 228 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 286 [7] => 286 [8] => -1 ) [2024-06-26 16:26:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 16:26:48] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-06-26 17:25:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 17:25:48] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 18:03:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 18:03:09] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-06-26 18:03:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 18:03:10] local.DEBUG: Values for Sql:Array ( [0] => 320 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 386 ) [2024-06-26 19:22:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 19:22:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 19:22:00] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 19:22:00] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 19:22:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-26 19:22:44] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-26 19:23:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 19:23:23] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 19:23:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 19:23:32] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-26 19:23:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-26 19:23:35] local.DEBUG: Values for Sql:Array ( [0] => 25 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 02:22:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 02:22:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 02:22:25] local.DEBUG: Values for Sql:Array ( [0] => 25 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 02:22:25] local.DEBUG: Values for Sql:Array ( [0] => 25 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 04:25:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 04:25:45] local.DEBUG: Values for Sql:Array ( [0] => 25 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 04:25:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 04:25:49] local.DEBUG: Values for Sql:Array ( [0] => 25 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-27 04:25:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-27 04:25:49] local.DEBUG: Values for Sql:Array ( [0] => 25 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 04:25:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 04:25:58] local.DEBUG: Values for Sql:Array ( [0] => 25 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 04:26:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 04:26:39] local.DEBUG: Values for Sql:Array ( [0] => 25 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 04:26:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 04:26:40] local.DEBUG: Values for Sql:Array ( [0] => 25 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 04:27:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 04:27:52] local.DEBUG: Values for Sql:Array ( [0] => 21 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 04:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 04:27:55] local.DEBUG: Values for Sql:Array ( [0] => 25 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 04:27:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 04:27:59] local.DEBUG: Values for Sql:Array ( [0] => 26 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 04:28:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 04:28:03] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 04:51:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 04:51:44] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-06-27 04:51:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 04:51:44] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-06-27 04:51:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 04:51:45] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-06-27 04:51:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 04:51:45] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 ) [2024-06-27 05:47:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 05:47:37] local.DEBUG: Values for Sql:Array ( [0] => 218 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 275 ) [2024-06-27 06:24:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 06:24:06] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-27 06:24:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 06:24:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-27 06:56:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 06:56:24] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 06:57:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 06:57:00] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 06:57:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 06:57:01] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 06:59:13] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 06:59:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 06:59:15] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 06:59:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-27 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (10, 318, 18, PENDING, ?, ?, ?, 2024-06-27 07:05:02, 2024-06-27 07:05:02)) [2024-06-27 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(489): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(433): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-06-27 07:27:23] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 07:27:23] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 07:27:23] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 07:27:23] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 07:29:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 07:29:22] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 07:30:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 07:30:23] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 07:30:25] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 07:30:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 07:30:26] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 07:30:26] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 07:31:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 07:31:01] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 09:30:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 09:30:12] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 09:30:16] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:30:16] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 09:30:16] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:30:16] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 09:30:34] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:30:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 09:32:10] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:32:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 09:32:10] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:32:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 09:32:22] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:32:22] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 65f11cfe-bb63-4f0b-9367-6a4a56483408 [2] => 2 ) [2024-06-27 09:32:36] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `file_name` LIKE ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:32:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 [2] => %test% ) [2024-06-27 09:32:39] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:32:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 272b240d-51b7-4789-922b-da8f5f10816b [2] => 2 ) [2024-06-27 09:32:54] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:32:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 09:32:55] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:32:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 09:33:10] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:33:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => d22334b4-939f-4621-a3c3-8050093c3a37 [2] => 2 ) [2024-06-27 09:37:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 09:37:18] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 09:48:13] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:48:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 09:48:14] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:48:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 09:52:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 09:52:17] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 09:52:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 09:52:47] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 09:52:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 09:52:47] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 09:53:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 09:53:58] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 09:55:40] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:55:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 09:55:41] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:55:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 09:56:58] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:56:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 09:56:59] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 09:56:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 10:42:09] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:42:09] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 10:42:10] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:42:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 10:42:20] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:42:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 10:42:20] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:42:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 10:43:00] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:43:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 10:43:00] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:43:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 10:46:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 10:46:25] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 10:46:27] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:46:27] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 10:46:27] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:46:27] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 10:47:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 10:47:23] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 10:47:24] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:47:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 10:47:25] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:47:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 10:47:35] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:47:35] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 10:47:35] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:47:35] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 10:48:14] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:48:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 10:48:14] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:48:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 10:49:50] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:49:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 10:49:50] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 10:49:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 13:17:17] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 13:17:17] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 13:17:19] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 13:17:19] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 13:18:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 13:18:27] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 13:18:38] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 13:18:38] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 13:18:39] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 13:18:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 13:19:13] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 13:19:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 13:19:13] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 13:19:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 13:19:33] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 13:19:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-27 13:19:34] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-27 13:19:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-27 13:20:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 13:20:56] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 13:55:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 13:55:03] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-27 13:56:57] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jsamuel@coinsforcollege.org","name":"Joshua Samuel"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Joshua Samuel,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">06980<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-27 13:56:58] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1ea704b0-348d-11ef-80b3-52540064429e.19059fc307b","object":"email"} [2024-06-27 13:58:22] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 420 [2024-06-27 13:59:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 13:59:37] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:03:50] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:03:50] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:05:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:05:03] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:05:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:05:03] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:05:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:05:16] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:05:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:05:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:06:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:06:58] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:07:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:07:26] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-27 14:07:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:07:51] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-27 14:08:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:08:01] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-27 14:08:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-27 14:08:01] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-27 14:08:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:08:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-27 14:08:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-27 14:08:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-27 14:09:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:09:54] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 238 ) [2024-06-27 14:10:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:10:16] local.DEBUG: Values for Sql:Array ( [0] => 162 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 ) [2024-06-27 14:11:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:11:19] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-27 14:11:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-27 14:11:19] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-27 14:11:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:11:19] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-27 14:11:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:11:20] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 238 ) [2024-06-27 14:13:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:13:52] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:15:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:15:52] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:18:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:18:18] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 14:18:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:18:23] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 14:18:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:18:23] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 14:18:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:18:23] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 14:24:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:24:12] local.DEBUG: Values for Sql:Array ( [0] => 162 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 ) [2024-06-27 14:25:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:25:03] local.DEBUG: Values for Sql:Array ( [0] => 162 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 216 ) [2024-06-27 14:25:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:25:05] local.DEBUG: Values for Sql:Array ( [0] => 339 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 411 ) [2024-06-27 14:30:28] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jsamuel567@yahoo.com","name":"Joshua Parent"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Joshua Parent,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">47451<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-27 14:30:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cd76ec40-3491-11ef-80b3-52540064429e.1905a1ae104","object":"email"} [2024-06-27 14:31:06] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 421 [2024-06-27 14:32:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:32:30] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:34:26] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"brentseverns8@gmail.com","name":"Brent Parent"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Brent Parent,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">70834<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-27 14:34:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5adbab70-3492-11ef-867d-525400ae9113.1905a1e7fa7","object":"email"} [2024-06-27 14:34:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:34:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:35:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:35:16] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:35:16] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 422 [2024-06-27 14:35:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:35:36] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:35:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:35:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:36:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:36:37] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 14:36:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:36:42] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:37:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 14:37:25] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 14:37:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:37:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 14:38:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:38:02] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:39:17] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jsamuel567@icloud.com","name":"Joshua Case Worker"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Joshua Case Worker,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">37960<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-27 14:39:17] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0879c690-3493-11ef-836d-525400d4bb1c.1905a22f179","object":"email"} [2024-06-27 14:39:49] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 423 [2024-06-27 14:40:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:40:15] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 ) [2024-06-27 14:45:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:45:40] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 ) [2024-06-27 14:48:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:48:01] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:50:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:50:08] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 ) [2024-06-27 14:50:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:50:19] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:50:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:50:30] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:50:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:50:43] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:51:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:51:04] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-27 14:51:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:51:17] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 ) [2024-06-27 14:51:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:51:17] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 ) [2024-06-27 14:51:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:51:17] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 ) [2024-06-27 14:51:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:51:41] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-27 14:51:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:51:41] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-27 14:51:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:51:41] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-27 14:51:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:51:42] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 14:51:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:51:42] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 14:51:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:51:42] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 14:51:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:51:45] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-27 14:52:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:52:06] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 14:52:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:52:06] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 14:52:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:52:06] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 14:52:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:52:14] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:52:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:52:15] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 14:52:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:52:17] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 14:52:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:52:17] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 14:52:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:52:17] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 14:52:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:52:18] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 14:52:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:52:41] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 238 ) [2024-06-27 14:52:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 14:52:44] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 14:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:53:15] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 ) [2024-06-27 14:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:53:15] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 ) [2024-06-27 14:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:53:15] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 ) [2024-06-27 14:53:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:53:38] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 14:53:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:53:38] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 14:53:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:53:38] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 14:53:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:53:44] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 238 [7] => -1 ) [2024-06-27 14:53:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:53:44] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 238 [7] => 1 [8] => 238 [9] => -1 ) [2024-06-27 14:53:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:53:44] local.DEBUG: Values for Sql:Array ( [0] => 187 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 238 [7] => 238 [8] => -1 ) [2024-06-27 14:54:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:54:13] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-27 14:54:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:54:13] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-27 14:54:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:54:13] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-27 14:59:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 14:59:06] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 14:59:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 14:59:07] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 14:59:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 14:59:08] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 14:59:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 14:59:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 14:59:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 14:59:10] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 14:59:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:59:13] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 14:59:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:59:14] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 14:59:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 14:59:14] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 15:00:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:08] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:00:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:08] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:00:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:08] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:00:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:28] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 ) [2024-06-27 15:00:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:00:28] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 15:00:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:30] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 ) [2024-06-27 15:00:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:00:30] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 15:00:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:30] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:00:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:30] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:00:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:30] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:00:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:30] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 ) [2024-06-27 15:00:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:00:30] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 ) [2024-06-27 15:00:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 15:00:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 15:00:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:32] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 15:00:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:32] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:00:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:32] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:00:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:32] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:00:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:35] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 ) [2024-06-27 15:00:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:00:35] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 15:00:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:36] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 ) [2024-06-27 15:00:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:36] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 ) [2024-06-27 15:00:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:36] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 ) [2024-06-27 15:00:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:41] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 15:00:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:41] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 15:00:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:41] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 15:00:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:43] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 ) [2024-06-27 15:00:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:00:43] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 15:00:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:44] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 15:00:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:44] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 15:00:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:00:44] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 15:01:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:01:41] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:01:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:01:41] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:01:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:01:41] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:03:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:03:47] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 ) [2024-06-27 15:03:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:03:47] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 ) [2024-06-27 15:03:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:03:49] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 ) [2024-06-27 15:03:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:03:49] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 ) [2024-06-27 15:03:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:03:49] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 ) [2024-06-27 15:04:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:04:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:04:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:04:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:04:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:04:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:07:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:07:09] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 ) [2024-06-27 15:07:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:07:09] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 ) [2024-06-27 15:07:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:07:09] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 ) [2024-06-27 15:07:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:07:20] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 173 ) [2024-06-27 15:07:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:07:29] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 ) [2024-06-27 15:07:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:07:29] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 ) [2024-06-27 15:07:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:07:29] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 ) [2024-06-27 15:07:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:07:30] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 128 ) [2024-06-27 15:07:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 15:07:38] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 15:08:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:08:12] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 15:08:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:08:12] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 15:08:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:08:12] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 15:08:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:08:13] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 ) [2024-06-27 15:08:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:08:13] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 ) [2024-06-27 15:08:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:08:13] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 ) [2024-06-27 15:13:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:13:23] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:13:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:13:23] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:13:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:13:23] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:13:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:13:25] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-06-27 15:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:13:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:13:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:13:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:13:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:13:32] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-06-27 15:13:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:13:53] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:13:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:13:53] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:13:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:13:53] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:13:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:13:54] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-06-27 15:14:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:14:40] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:14:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:14:40] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:14:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:14:40] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:15:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:15:02] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-06-27 15:15:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:15:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:15:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:15:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:15:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:15:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:16:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:16:41] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:16:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:16:41] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:16:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:16:41] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:16:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:16:43] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-06-27 15:18:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:18:18] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:18:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:18:18] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:18:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:18:18] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:18:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:18:32] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:18:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:18:32] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:18:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:18:32] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:30:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 15:30:27] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 ) [2024-06-27 15:30:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:30:47] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 ) [2024-06-27 15:30:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:30:47] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 ) [2024-06-27 15:30:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:30:47] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 ) [2024-06-27 15:30:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:30:51] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 172 ) [2024-06-27 15:30:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:30:54] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-06-27 15:30:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:30:58] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:30:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:30:58] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:30:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:30:58] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:30:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:30:59] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 ) [2024-06-27 15:30:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:30:59] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 ) [2024-06-27 15:30:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:30:59] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 ) [2024-06-27 15:31:04] local.DEBUG: Request Object:Array ( [description] => N/A [requirement_for_claim] => SP [task_id] => 308 [product_sp] => 1000 [product_type] => REWARD [product_name] => trip to Disneyland [repeate_after_days] => null [expires_on] => [visible_in_family_store] => 1 [product_category_id] => 1 [product_img] => Array ( [0] => Illuminate\Http\UploadedFile Object ( [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 1719502261.881043.jpeg [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => image/jpeg [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0 [hashName:protected] => [pathName:SplFileInfo:private] => /tmp/phpzcKApS [fileName:SplFileInfo:private] => phpzcKApS ) ) ) [2024-06-27 15:31:04] local.DEBUG: Product Image Details: Array ( [product_id] => 303 [image_name] => 17209480021719502264.jpeg ) [2024-06-27 15:31:04] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 291 [2024-06-27 15:31:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:04] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 15:31:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:05] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 15:31:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:05] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 15:31:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:31:07] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 ) [2024-06-27 15:31:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:31:08] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 ) [2024-06-27 15:31:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:31:11] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 ) [2024-06-27 15:31:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:31:14] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 109 ) [2024-06-27 15:31:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:31:17] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-06-27 15:31:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:31:18] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 303 ) [2024-06-27 15:31:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:31:20] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 ) [2024-06-27 15:31:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:20] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 15:31:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:20] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 15:31:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:20] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 15:31:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:21] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:31:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:21] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:31:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:21] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:31:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-27 15:31:22] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 ) [2024-06-27 15:31:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:31:22] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 303 ) [2024-06-27 15:31:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 15:31:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 15:31:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 15:31:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:34] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 ) [2024-06-27 15:31:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:34] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 ) [2024-06-27 15:31:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:34] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 ) [2024-06-27 15:31:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:31:38] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 288 ) [2024-06-27 15:31:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:31:42] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-06-27 15:31:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:58] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 ) [2024-06-27 15:31:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:58] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 ) [2024-06-27 15:31:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:31:58] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 ) [2024-06-27 15:35:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 15:35:02] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 15:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:36:23] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:36:23] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:36:23] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:36:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 15:36:29] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 15:36:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 15:36:39] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-27 15:36:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 15:36:40] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-27 15:40:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 15:40:51] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 ) [2024-06-27 15:46:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:46:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 15:46:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:46:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 15:46:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:46:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 15:49:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:49:42] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:49:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:49:42] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:49:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:49:42] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:49:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 15:49:43] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-06-27 15:49:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:49:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 15:49:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:49:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 15:49:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:49:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 15:52:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:52:46] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 15:52:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:52:47] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 15:52:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 15:52:47] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 15:52:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 15:52:54] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 16:36:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 16:36:11] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-27 16:36:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 16:36:26] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 17:01:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 17:01:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 17:01:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:01:16] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-27 17:01:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-27 17:01:16] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 17:01:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-27 17:01:18] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 17:12:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:12:51] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-27 17:12:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-27 17:12:51] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 17:13:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:13:16] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-27 17:13:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-27 17:13:16] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 17:17:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:17:55] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-27 17:17:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-27 17:17:55] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 17:18:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 17:18:21] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 120 ) [2024-06-27 17:18:21] local.DEBUG: Current Balance: 50 [2024-06-27 17:19:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:19:47] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-27 17:19:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-27 17:19:47] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-27 17:22:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 17:22:29] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-27 17:22:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:22:31] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-27 17:22:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:22:31] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-27 17:22:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:22:31] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-27 17:23:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:23:25] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-27 17:23:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:23:25] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-27 17:23:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:23:25] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-27 17:25:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 17:25:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-27 17:25:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:25:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-27 17:25:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:25:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-27 17:25:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:25:07] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-27 17:29:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:28] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-27 17:29:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:28] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-27 17:29:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:28] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-27 17:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:30] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-27 17:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:30] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-27 17:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:30] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-27 17:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 17:29:30] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-27 17:29:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 17:29:32] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 172 ) [2024-06-27 17:29:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:35] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-27 17:29:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:35] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-27 17:29:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:35] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-27 17:29:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 17:29:42] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 172 ) [2024-06-27 17:29:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:43] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-27 17:29:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:43] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-27 17:29:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:29:43] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-27 17:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:34:10] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-27 17:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:34:10] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-27 17:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 17:34:10] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-27 18:01:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 18:01:47] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 ) [2024-06-27 18:01:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 18:01:47] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 ) [2024-06-27 18:01:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 18:01:47] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 ) [2024-06-27 20:06:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 20:06:57] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-06-27 20:06:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 20:06:57] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-06-27 20:07:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 20:07:13] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 [7] => -1 ) [2024-06-27 20:07:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 20:07:13] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 [7] => 1 [8] => 380 [9] => -1 ) [2024-06-27 20:07:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 20:07:13] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 [7] => 380 [8] => -1 ) [2024-06-27 20:07:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 20:07:16] local.DEBUG: Values for Sql:Array ( [0] => 315 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 380 ) [2024-06-27 22:33:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 22:33:46] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-27 22:34:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 22:34:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 22:34:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 22:34:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 22:34:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 173 ) [2024-06-27 22:34:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:29] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 22:34:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:29] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 22:34:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:29] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 22:34:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 22:34:30] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 172 ) [2024-06-27 22:34:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:30] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 22:34:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:30] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 22:34:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:30] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 22:34:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-27 22:34:39] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 171 ) [2024-06-27 22:34:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:40] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-27 22:34:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:40] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-27 22:34:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-27 22:34:40] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-27 23:44:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-27 23:44:14] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 00:07:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 00:07:49] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 00:26:37] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"keltneraa@gmail.com","name":"Penelope Biale"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Penelope Biale,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMinds: Decode, Map & Read with: n, i, f, m, t, p, a and h<\\/li>\\n <li><strong>Assigned By:<\\/strong> Haley Biale<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-28 00:26:37] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.14ece7c0-34e5-11ef-8ded-525400fa05f6.1905c3ca83c","object":"email"} [2024-06-28 00:30:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 00:30:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 00:30:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 00:30:55] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 00:32:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 00:32:07] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 00:32:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 00:32:13] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 00:35:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 00:35:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 00:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 00:35:35] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-28 00:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 00:35:35] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-28 00:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 00:35:35] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-28 00:35:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 00:35:47] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-28 00:35:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 00:35:47] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-28 00:35:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 00:35:47] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-28 00:42:54] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"keltneraa@gmail.com","name":"Penelope Biale"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Penelope Biale,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Feed Dog<\\/li>\\n <li><strong>Assigned By:<\\/strong> Haley Biale<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-28 00:42:54] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5b517710-34e7-11ef-867d-525400ae9113.1905c4b9101","object":"email"} [2024-06-28 00:44:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 00:44:34] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 94518 [6] => 128 ) [2024-06-28 00:44:34] local.DEBUG: Current Balance: 0 [2024-06-28 00:45:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 00:45:01] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 94518 [6] => 128 ) [2024-06-28 00:45:01] local.DEBUG: Current Balance: 0 [2024-06-28 00:45:06] local.DEBUG: task visible_to: [2024-06-28 00:45:47] local.DEBUG: task visible_to: [2024-06-28 00:45:58] local.DEBUG: task visible_to: [2024-06-28 00:48:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 00:48:37] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 00:49:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 00:49:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 00:51:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 00:51:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 00:54:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 00:54:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 01:02:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 01:02:38] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 01:05:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 01:05:21] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-28 01:05:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 01:05:21] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-28 01:05:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 01:05:21] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-28 01:09:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 01:09:22] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 01:09:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 01:09:47] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 02:17:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 02:17:04] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 02:17:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 02:17:22] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 02:17:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 02:17:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-28 02:17:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 02:17:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-28 02:17:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 02:17:25] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-28 02:17:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 02:17:27] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 02:17:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 02:17:37] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 02:19:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 02:19:08] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 02:19:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 02:19:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-28 02:19:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 02:19:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-28 02:19:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 02:19:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-28 03:30:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 03:30:55] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 04:01:45] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"lindakowalk4@gmail.com","name":"Linda Kowalk"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>28967<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-28 04:01:45] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.22c95a90-3503-11ef-9ef4-525400d6cd4f.1905d019eb9","object":"email"} [2024-06-28 04:02:52] local.INFO: 10.00000000 points allocated for PARENT_SIGN_UP to 372 [2024-06-28 04:02:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 04:02:58] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 ) [2024-06-28 04:05:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 04:05:51] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => -1 ) [2024-06-28 04:05:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 04:05:51] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 1 [8] => 372 [9] => -1 ) [2024-06-28 04:05:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 04:05:51] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 [8] => -1 ) [2024-06-28 04:06:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 04:06:06] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 ) [2024-06-28 04:06:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 04:06:37] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 04:07:22] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"keltneraa@gmail.com","name":"Penelope Biale"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Penelope Biale,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> LuminousMinds: Syllable Activities: Let\\u2019s Explore R-Controlled Syllables(L5)<\\/li>\\n <li><strong>Assigned By:<\\/strong> Haley Biale<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-28 04:07:23] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ebff5d11-3503-11ef-be2f-525400cbcb5e.1905d06c561","object":"email"} [2024-06-28 04:09:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 04:09:29] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 ) [2024-06-28 04:09:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 04:09:45] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-28 04:09:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 04:09:45] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-28 04:09:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 04:09:45] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-28 04:09:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 04:09:48] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 04:09:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 04:09:50] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 ) [2024-06-28 04:09:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 04:09:50] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 ) [2024-06-28 04:09:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 04:09:50] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 ) [2024-06-28 04:10:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 04:10:07] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 ) [2024-06-28 04:11:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 04:11:22] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 ) [2024-06-28 04:24:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-28 04:24:56] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-28 05:00:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 05:00:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 05:34:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 05:34:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 05:48:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 05:48:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 05:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 05:57:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 06:07:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:07:03] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 06:07:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-28 06:07:27] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 06:13:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:13:53] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 06:14:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:14:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 06:15:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:15:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 06:15:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:15:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 06:16:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:16:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 06:17:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:17:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 06:25:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:25:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 06:29:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:29:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 06:31:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:31:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 06:47:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:47:36] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 06:50:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-28 06:50:22] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 06:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-28 06:53:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 06:53:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 06:53:18] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 06:53:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 06:53:18] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 06:57:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 06:57:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 06:57:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 06:57:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 06:57:31] local.DEBUG: task visible_to: [2024-06-28 06:57:38] local.DEBUG: task visible_to: [2024-06-28 06:57:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 06:57:47] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 06:57:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 06:57:47] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 06:57:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 06:57:59] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru ) [2024-06-28 06:58:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 06:58:39] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => -1 ) [2024-06-28 06:58:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 06:58:39] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 1 [17] => 88 [18] => -1 ) [2024-06-28 06:58:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 06:58:39] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 88 [17] => -1 ) [2024-06-28 06:58:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 06:58:43] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 288 ) [2024-06-28 06:58:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 06:58:45] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 288 ) [2024-06-28 07:01:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-28 07:01:32] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 07:01:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:01:55] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 07:01:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:01:55] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 07:02:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-28 07:02:28] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-28 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 324, 76, PENDING, ?, ?, ?, 2024-06-28 07:05:02, 2024-06-28 07:05:02)) [2024-06-28 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(489): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(433): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-06-28 07:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:08:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 07:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 07:08:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 07:09:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:09:04] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru ) [2024-06-28 07:09:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:09:06] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => -1 ) [2024-06-28 07:09:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:09:06] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 1 [17] => 88 [18] => -1 ) [2024-06-28 07:09:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:09:06] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 88 [17] => -1 ) [2024-06-28 07:09:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:09:23] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 07:09:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 07:09:23] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 07:09:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 07:09:27] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 288 ) [2024-06-28 07:09:27] local.DEBUG: Current Balance: 100 [2024-06-28 07:09:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:09:35] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 07:09:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 07:09:35] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 07:09:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:09:56] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru ) [2024-06-28 07:09:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:09:57] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => -1 ) [2024-06-28 07:09:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:09:57] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 1 [17] => 88 [18] => -1 ) [2024-06-28 07:09:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:09:57] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 88 [17] => -1 ) [2024-06-28 07:10:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:10:50] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru ) [2024-06-28 07:11:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:11:09] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru ) [2024-06-28 07:11:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:11:11] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru ) [2024-06-28 07:11:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:11:45] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 07:13:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:13:07] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 07:13:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:13:09] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 07:13:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:13:09] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 07:13:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:13:09] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 07:16:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:16:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 07:20:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:20:44] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 07:20:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:20:46] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 07:20:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:20:46] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 07:20:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:20:46] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 07:22:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:22:12] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 07:22:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:22:26] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 07:22:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:22:46] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 07:22:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:22:46] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 07:22:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:22:46] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 07:22:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 07:22:53] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 288 ) [2024-06-28 07:23:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:23:03] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 07:23:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:23:03] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 07:23:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:23:03] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 07:23:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 07:23:05] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 208 ) [2024-06-28 07:23:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:23:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 07:23:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:23:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 07:23:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:23:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 07:23:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 07:23:18] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 208 ) [2024-06-28 07:23:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:23:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 07:25:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:25:25] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-28 07:25:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:25:25] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-28 07:25:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:25:26] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-28 07:25:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:25:26] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-28 07:25:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 07:25:26] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-28 07:26:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:26:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 07:36:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:36:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 07:37:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 07:37:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 08:20:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 08:20:05] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 ) [2024-06-28 08:20:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 08:20:05] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 ) [2024-06-28 08:20:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 08:20:05] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 ) [2024-06-28 08:20:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 08:20:05] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 ) [2024-06-28 08:38:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 08:38:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 08:38:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 08:38:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 ) [2024-06-28 08:38:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 08:38:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 ) [2024-06-28 08:38:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 08:38:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 ) [2024-06-28 08:39:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 08:39:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 08:40:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 08:40:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 08:41:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 08:41:49] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 08:43:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 08:43:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 09:51:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 09:51:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 09:52:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 09:52:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:26:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:26:31] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:28:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:24] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 10:28:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:24] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 10:28:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:24] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 10:28:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 10:28:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 10:28:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 10:28:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 10:28:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 10:28:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 10:28:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:28:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:28:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 10:28:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 10:28:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:28:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 10:29:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:29:04] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 10:29:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:29:04] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 10:29:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:29:06] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 10:29:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:29:06] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 10:29:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:29:06] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 10:29:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:29:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 412 [17] => 87 ) [2024-06-28 10:29:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:29:15] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 412 [17] => 87 ) [2024-06-28 10:29:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:29:24] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 10:29:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:29:24] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 10:29:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:29:24] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 10:29:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:29:42] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 ) [2024-06-28 10:29:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:29:42] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States ) [2024-06-28 10:29:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:29:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 ) [2024-06-28 10:29:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:29:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 ) [2024-06-28 10:29:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:29:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 ) [2024-06-28 10:30:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:30:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:30:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:30:18] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru ) [2024-06-28 10:30:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:30:20] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => -1 ) [2024-06-28 10:30:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:30:20] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 1 [17] => 88 [18] => -1 ) [2024-06-28 10:30:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:30:20] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 88 [17] => -1 ) [2024-06-28 10:30:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:30:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:30:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:30:32] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru ) [2024-06-28 10:30:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:30:33] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru ) [2024-06-28 10:30:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:30:36] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => -1 ) [2024-06-28 10:30:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:30:36] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 1 [17] => 88 [18] => -1 ) [2024-06-28 10:30:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:30:36] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru [16] => 88 [17] => -1 ) [2024-06-28 10:30:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:30:41] local.DEBUG: Values for Sql:Array ( [0] => 68 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 88 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00602 [11] => Peru [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Peru ) [2024-06-28 10:30:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-28 10:30:50] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:30:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:30:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:30:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 10:30:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:30:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 10:30:57] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 203 ) [2024-06-28 10:30:57] local.DEBUG: Current Balance: 100 [2024-06-28 10:30:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:30:58] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:30:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 10:30:58] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:31:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 10:31:08] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 199 ) [2024-06-28 10:31:09] local.DEBUG: Current Balance: 100 [2024-06-28 10:31:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:31:11] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:31:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 10:31:11] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:31:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:31:45] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:31:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:31:45] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:31:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:31:49] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:31:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:31:49] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:31:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:31:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:31:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:31:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:32:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 10:32:03] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 109 ) [2024-06-28 10:32:04] local.DEBUG: Current Balance: 100 [2024-06-28 10:32:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:32:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:32:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 10:32:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:32:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:32:41] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:32:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:32:41] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:32:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:32:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:32:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:32:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:32:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:32:45] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:32:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:32:45] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:32:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:32:48] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:32:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:32:48] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:32:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:32:53] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:32:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:32:53] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:34:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:34:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:34:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-06-28 10:34:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:34:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:34:34] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:34:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:34:34] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:34:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:34:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:35:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:35:07] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:35:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:35:07] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:35:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:35:32] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 10:35:35] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 259 ) [2024-06-28 10:35:35] local.DEBUG: Current Balance: 100 [2024-06-28 10:35:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:35:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:35:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 10:35:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:35:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:35:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:35:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:35:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:36:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:36:44] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:37:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:37:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:38:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:38:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:41:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:41:32] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:42:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:42:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:45:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:45:47] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:45:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:45:47] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:48:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:48:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria ) [2024-06-28 10:50:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:50:05] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:50:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 10:50:05] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:50:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 10:50:12] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 179 ) [2024-06-28 10:50:12] local.DEBUG: Current Balance: 100 [2024-06-28 10:50:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:50:19] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:50:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 10:50:19] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:50:35] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:50:35] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:50:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:50:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:50:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:50:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:50:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:50:38] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:50:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:50:38] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:50:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:50:41] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:50:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:50:41] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:50:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:50:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:50:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:50:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:50:50] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:50:50] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:50:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 10:50:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 90 ) [2024-06-28 10:50:52] local.DEBUG: Current Balance: 100 [2024-06-28 10:51:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 10:51:18] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 187 ) [2024-06-28 10:51:18] local.DEBUG: Current Balance: 100 [2024-06-28 10:51:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:51:29] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-06-28 10:51:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 10:51:29] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-28 10:52:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:52:36] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-06-28 10:52:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:52:41] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-28 10:52:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:52:41] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-28 10:52:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:52:41] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-28 10:52:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:52:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 ) [2024-06-28 10:52:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:52:52] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 ) [2024-06-28 10:52:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:52:53] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 ) [2024-06-28 10:53:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:53:02] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 10:53:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 10:53:07] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 109 ) [2024-06-28 10:53:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-28 10:53:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-28 10:53:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-28 10:53:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-28 10:53:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-28 10:53:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-28 10:53:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:53:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 10:53:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 10:53:32] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 301 ) [2024-06-28 10:53:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:36] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-28 10:53:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:36] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-28 10:53:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:36] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-28 10:53:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:53:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 2 [17] => 87 ) [2024-06-28 10:53:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 10:53:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 2 [17] => 87 ) [2024-06-28 10:53:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:50] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-28 10:53:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:50] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-28 10:53:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:53:50] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-28 10:54:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:54:11] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 10:54:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:54:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 10:55:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:55:12] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 10:55:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:55:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-06-28 10:55:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:55:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-06-28 10:55:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 10:55:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-06-28 10:55:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:55:23] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 10:56:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 10:56:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:05:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:05:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:06:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:06:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:07:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:07:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:08:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:08:26] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:13:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:13:22] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:15:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:15:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:16:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:16:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:19:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:19:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:20:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:20:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:30:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:30:31] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:40:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:40:23] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:46:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:46:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:53:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:53:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 11:59:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 11:59:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:00:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:00:42] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:02:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:02:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:04:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:08:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:08:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:16:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:16:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:18:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:18:11] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:19:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:19:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:19:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:19:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:19:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:19:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:27:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:27:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:28:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:28:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:33:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:33:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:52:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:52:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:53:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:53:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:54:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:54:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 12:56:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 12:56:32] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 13:00:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:00:55] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-28 13:00:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:00:55] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-28 13:00:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:00:55] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-28 13:00:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 13:00:58] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 304 ) [2024-06-28 13:01:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:01:00] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-28 13:01:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:01:00] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-28 13:01:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:01:00] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-28 13:01:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:01:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-28 13:01:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:01:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-28 13:01:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:01:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-28 13:01:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 13:01:54] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 304 ) [2024-06-28 13:01:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:01:56] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-28 13:01:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:01:56] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-28 13:01:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:01:56] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-28 13:02:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 13:02:11] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-06-28 13:02:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:02:12] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-28 13:02:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:02:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-28 13:02:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:02:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-28 13:02:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 13:02:14] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 304 ) [2024-06-28 13:02:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:02:16] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-28 13:02:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:02:16] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-28 13:02:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 13:02:16] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-28 13:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 13:02:49] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-28 15:20:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 15:20:49] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-06-28 15:20:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 15:20:50] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-06-28 15:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 15:21:45] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-06-28 15:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 15:21:45] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-06-28 15:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 15:21:45] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-06-28 15:22:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-28 15:22:18] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-28 15:22:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 15:22:30] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-28 15:22:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 15:22:30] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-28 15:23:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 15:23:06] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-06-28 15:23:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 15:23:46] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-06-28 16:13:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-28 16:13:59] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-28 16:17:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 16:17:39] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-28 16:18:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:18:56] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-28 16:18:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:18:56] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-28 16:18:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:18:56] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-28 16:19:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:19:44] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-28 16:19:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:19:44] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-28 16:19:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:19:44] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-28 16:19:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 16:19:55] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-28 16:20:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 16:20:41] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-06-28 16:20:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:20:41] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-06-28 16:20:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:20:42] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-06-28 16:20:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:20:42] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-06-28 16:21:23] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 110 [2024-06-28 16:21:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:21:23] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-06-28 16:21:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:21:23] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-06-28 16:21:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:21:23] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-06-28 16:22:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:22:32] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-06-28 16:22:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:22:32] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-06-28 16:22:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:22:32] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-06-28 16:22:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 16:22:37] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-28 16:23:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 16:23:01] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-28 16:23:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:23:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-06-28 16:23:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:23:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-06-28 16:23:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:23:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-06-28 16:23:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 16:23:06] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-06-28 16:23:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:23:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-06-28 16:23:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:23:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-06-28 16:23:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:23:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-06-28 16:23:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:23:20] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 ) [2024-06-28 16:23:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 16:23:20] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-28 16:23:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:23:23] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-06-28 16:23:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:23:23] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-06-28 16:23:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:23:23] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-06-28 16:23:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 16:23:31] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-28 16:23:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 16:23:33] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-28 16:23:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 16:23:35] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-28 16:23:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 16:23:37] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-28 16:24:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:24:03] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-06-28 16:24:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:24:03] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-06-28 16:24:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:24:03] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-06-28 16:24:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 16:24:15] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-28 16:37:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:37:55] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-06-28 16:37:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:37:55] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-06-28 16:37:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:37:55] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-06-28 16:38:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:38:15] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-06-28 16:38:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:38:15] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-06-28 16:38:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:38:15] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-06-28 16:38:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 16:38:31] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-06-28 16:39:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:39:06] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-06-28 16:39:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:39:06] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-06-28 16:39:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:39:06] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-06-28 16:40:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 16:40:22] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 128 ) [2024-06-28 16:40:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-28 16:40:31] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 16:40:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:40:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:40:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 16:40:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 16:41:11] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-28 16:41:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:41:24] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:41:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 16:41:24] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 16:41:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:41:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-28 16:41:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:41:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-28 16:41:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:41:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-28 16:41:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 16:41:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-28 16:43:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:04] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-28 16:43:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:04] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-28 16:43:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:04] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-28 16:43:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 16:43:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 303 ) [2024-06-28 16:43:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:10] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-28 16:43:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:10] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-28 16:43:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:10] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-28 16:43:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 16:43:11] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 288 ) [2024-06-28 16:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:13] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-28 16:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:13] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-28 16:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:13] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-28 16:43:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 16:43:18] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 303 ) [2024-06-28 16:43:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:24] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-28 16:43:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:24] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-28 16:43:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:43:24] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-28 16:46:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:46:57] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-06-28 16:46:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:46:57] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-06-28 16:46:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:46:57] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-06-28 16:48:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:48:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:48:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 16:48:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 16:48:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 16:48:11] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 288 ) [2024-06-28 16:48:11] local.DEBUG: Current Balance: 0 [2024-06-28 16:48:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:48:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:48:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 16:48:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 16:49:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:49:02] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:49:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 16:49:02] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 2 ) [2024-06-28 16:49:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:49:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:49:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 16:49:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 16:49:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:49:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:49:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 16:49:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 2 ) [2024-06-28 16:49:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:49:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:49:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 16:49:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 2 ) [2024-06-28 16:55:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:55:41] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:55:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 16:55:41] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 16:55:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 16:55:45] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 173 ) [2024-06-28 16:58:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:58:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:58:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 16:58:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 16:58:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 16:58:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 173 ) [2024-06-28 16:59:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:59:30] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:59:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 16:59:30] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 16:59:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 16:59:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 16:59:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-28 16:59:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 3 ) [2024-06-28 16:59:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 16:59:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 173 ) [2024-06-28 16:59:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 16:59:47] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 173 ) [2024-06-28 17:00:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 17:00:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 173 ) [2024-06-28 17:01:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 17:01:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 173 ) [2024-06-28 17:01:34] local.DEBUG: Current Balance: 0 [2024-06-28 17:02:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 17:02:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 173 ) [2024-06-28 17:02:06] local.DEBUG: Current Balance: 0 [2024-06-28 17:06:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 17:06:30] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 173 ) [2024-06-28 17:06:30] local.DEBUG: Current Balance: 0 [2024-06-28 17:06:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 17:06:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 115 ) [2024-06-28 17:06:34] local.DEBUG: Current Balance: 0 [2024-06-28 17:06:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 17:06:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 173 ) [2024-06-28 17:06:35] local.DEBUG: Current Balance: 0 [2024-06-28 17:06:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 17:06:41] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 173 ) [2024-06-28 17:06:41] local.DEBUG: Current Balance: 0 [2024-06-28 17:50:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 17:50:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 17:50:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 17:50:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 17:50:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 17:50:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 173 ) [2024-06-28 17:50:14] local.DEBUG: Current Balance: 0 [2024-06-28 19:02:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 19:02:30] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 19:02:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 19:02:30] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 19:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 19:02:31] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-28 19:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-28 19:02:31] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-28 19:02:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-28 19:02:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 288 ) [2024-06-28 19:02:34] local.DEBUG: Current Balance: 0 [2024-06-28 19:05:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 19:05:34] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 [7] => 343 ) [2024-06-28 19:05:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 19:05:34] local.DEBUG: Values for Sql:Array ( [0] => 280 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 343 [7] => 343 ) [2024-06-28 19:38:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 19:38:19] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-28 19:38:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 19:38:20] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-28 19:38:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 19:38:20] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-28 19:38:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 19:38:20] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-28 19:38:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 19:38:27] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-28 19:38:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 19:38:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-28 19:38:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 19:38:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-28 19:38:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 19:38:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-28 21:01:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 21:01:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-28 21:01:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 21:01:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-28 21:01:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-28 21:01:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-28 21:10:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 21:10:27] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-28 21:10:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 21:10:33] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-28 21:11:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-27' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-28 21:11:38] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-29 03:47:37] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 87 [2024-06-29 03:47:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 03:47:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-06-29 03:47:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 03:47:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-06-29 03:47:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 03:47:37] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-06-29 03:47:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-29 03:47:42] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-06-29 03:47:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 03:47:44] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 306 ) [2024-06-29 03:48:33] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"Kartik Gosiya"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kartik Gosiya,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> hello task<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-29 03:48:33] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7533ce10-35ca-11ef-be2f-525400cbcb5e.190621be571","object":"email"} [2024-06-29 03:48:34] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 87 [2024-06-29 05:41:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 05:41:35] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 06:24:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 06:24:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 06:25:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:25:22] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:26:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 06:26:08] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-29 06:26:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-29 06:26:08] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:27:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 06:27:06] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 06:28:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:28:00] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:28:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 06:28:06] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-29 06:28:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-29 06:28:06] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:28:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:28:11] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:29:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:29:54] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:30:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:30:17] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:34:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:34:09] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:34:21] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-29 06:34:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 2 ) [2024-06-29 06:34:22] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `document_uuid` in (?) and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-06-29 06:34:22] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => 7f7c3fe4-01c4-46af-841f-d56d41e1f72a [2] => 2 ) [2024-06-29 06:34:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:34:23] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:36:10] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:43:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:43:07] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:52:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:52:22] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:57:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:57:15] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:58:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:58:21] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 06:58:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 06:58:46] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 07:01:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 07:01:24] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-29 07:26:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 07:26:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 07:26:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 07:26:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 07:27:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 07:27:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 07:29:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 07:29:51] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 ) [2024-06-29 07:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 07:29:59] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 ) [2024-06-29 07:32:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 07:32:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 08:42:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 08:42:08] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 08:42:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 08:42:52] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 08:45:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 08:45:20] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 08:46:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 08:46:39] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 08:47:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 08:47:16] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 08:51:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 08:51:09] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 08:51:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 08:51:26] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 08:51:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 08:51:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 08:52:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 08:52:06] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 08:52:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 08:52:32] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 08:55:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 08:55:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:02:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:02:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:03:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:03:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:04:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:04:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:05:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:05:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:16:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:16:31] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:17:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:17:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:18:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 09:18:35] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 09:19:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 09:19:52] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-06-29 09:19:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 09:19:52] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-06-29 09:19:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 09:19:52] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-06-29 09:19:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:19:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:20:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:20:23] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:21:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:21:55] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:22:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:22:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:22:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:22:22] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:22:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 09:22:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 09:23:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 09:23:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 09:24:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 09:24:03] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 09:24:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 09:24:38] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 11:37:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 11:37:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 12:02:26] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => 6qStZ8mPTS2AJ82utmCrp4COa5Crb4mVly1FwbZM [product_id] => 306 [product_uuid] => ab9f4579-b52e-4bf2-adff-8db72f777f6a [product_name] => hello product [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 100 [expires_on] => 01 Jan 1970 [visible_to] => [group_id] => 69 [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => -1 [max_claim_allowed_per_user] => -1 [description] => Shakes [action] => [productImage] => Array ( [0] => Illuminate\Http\UploadedFile Object ( [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => Macaroons.jpg [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => image/jpeg [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0 [hashName:protected] => [pathName:SplFileInfo:private] => /tmp/php7CRQ6t [fileName:SplFileInfo:private] => php7CRQ6t ) [1] => Illuminate\Http\UploadedFile Object ( [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => macaroons_v2.jpg [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => image/jpeg [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0 [hashName:protected] => [pathName:SplFileInfo:private] => /tmp/phpZvODA5 [fileName:SplFileInfo:private] => phpZvODA5 ) ) ) [2024-06-29 12:29:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 12:29:53] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-06-29 12:30:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 12:30:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-29 12:33:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 12:33:08] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-06-29 12:33:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 12:33:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 13:01:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 13:01:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 13:02:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 13:02:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 13:05:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 13:05:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-29 14:22:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 14:22:00] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 14:22:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 14:22:32] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-06-29 14:33:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 14:33:56] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-06-29 14:34:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 14:34:04] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-06-29 17:03:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 17:03:32] local.DEBUG: Values for Sql:Array ( [0] => 273 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 335 [7] => 335 ) [2024-06-29 17:03:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 17:03:53] local.DEBUG: Values for Sql:Array ( [0] => 273 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 335 [7] => 335 ) [2024-06-29 20:35:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-29 20:35:52] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-29 20:35:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:35:53] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-29 20:35:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:35:53] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-29 20:35:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:35:53] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-29 20:35:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:35:58] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 208 ) [2024-06-29 20:36:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:36:05] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 208 ) [2024-06-29 20:36:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:36:07] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 208 ) [2024-06-29 20:36:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:36:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-29 20:36:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:36:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-29 20:36:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:36:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-29 20:36:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-29 20:36:28] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-29 20:36:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-29 20:36:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-29 20:36:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-29 20:36:40] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-29 20:36:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:36:51] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 115 ) [2024-06-29 20:37:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:37:11] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 107 ) [2024-06-29 20:37:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-29 20:37:20] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-29 20:37:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-06-29 20:37:44] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-29 20:37:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:37:50] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 ) [2024-06-29 20:38:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:38:06] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 88 ) [2024-06-29 20:38:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:38:27] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 2 ) [2024-06-29 20:38:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:38:34] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 2 ) [2024-06-29 20:38:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:38:37] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 2 ) [2024-06-29 20:38:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:38:39] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 2 ) [2024-06-29 20:39:56] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"keltneraa@gmail.com","name":"Penelope Biale"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Penelope Biale,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Clean room<\\/li>\\n <li><strong>Assigned By:<\\/strong> Haley Biale<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-29 20:39:56] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.bf2f2f90-3657-11ef-836d-525400d4bb1c.19065b9d909","object":"email"} [2024-06-29 20:39:57] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_TASKS to 291 [2024-06-29 20:41:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:41:22] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 173 ) [2024-06-29 20:41:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:41:59] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 303 ) [2024-06-29 20:42:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:42:02] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 303 ) [2024-06-29 20:42:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:42:08] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 288 ) [2024-06-29 20:42:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:42:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 288 ) [2024-06-29 20:42:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:42:29] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 288 ) [2024-06-29 20:42:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:42:46] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 288 ) [2024-06-29 20:43:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:43:00] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 288 ) [2024-06-29 20:43:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:43:18] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-29 20:43:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:43:18] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-29 20:43:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:43:18] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-29 20:43:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:43:54] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-29 20:43:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:43:54] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-29 20:43:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:43:54] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-29 20:43:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:43:56] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 288 ) [2024-06-29 20:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:43:58] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-29 20:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:43:58] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-29 20:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:43:58] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-29 20:43:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:43:59] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 288 ) [2024-06-29 20:44:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:44:03] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-29 20:44:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:44:03] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-29 20:44:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:44:03] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-29 20:45:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 20:45:05] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 20:45:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:45:10] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-29 20:45:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-29 20:45:10] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 20:45:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:45:23] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-29 20:45:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-29 20:45:23] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 20:45:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:45:32] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 288 ) [2024-06-29 20:45:32] local.DEBUG: Current Balance: 0 [2024-06-29 20:45:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:45:36] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-29 20:45:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-29 20:45:36] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 20:45:54] local.DEBUG: task visible_to: GLOBAL [2024-06-29 20:46:15] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-29 20:47:08] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-29 20:47:14] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-29 20:47:14] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-06-29 20:47:14] local.INFO: 0.10000000 points allocated for COMPLETION_OF_TASKS_BY_CHILDREN_IN_GROUP to 291 [2024-06-29 20:47:14] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"haleybiale@gmail.com","name":"Haley Biale"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Haley Biale,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Luminous Minds: Syllable Activities: Let\\u2019s Explore R-Controlled Syllables(L5)<\\/li>\\n <li><strong>Assigned To:<\\/strong> Penelope Biale<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-06-29 20:47:15] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c4560b50-3658-11ef-be2f-525400cbcb5e.19065c08885","object":"email"} [2024-06-29 20:47:15] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-06-29 20:47:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:47:21] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-29 20:47:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-29 20:47:21] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 20:47:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 20:47:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 20:47:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:47:58] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-29 20:47:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-29 20:47:58] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 20:48:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:48:15] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 286 ) [2024-06-29 20:48:15] local.DEBUG: Current Balance: 25 [2024-06-29 20:48:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-29 20:48:26] local.DEBUG: Values for Sql:Array ( [0] => 286 ) [2024-06-29 20:48:26] local.DEBUG: Current Balance: 25 [2024-06-29 20:48:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-29 20:48:30] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-29 20:48:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-29 20:48:30] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 20:48:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 20:48:47] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 22:02:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-29 22:02:39] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-29 22:02:43] local.DEBUG: task visible_to: GLOBAL [2024-06-29 22:03:03] local.DEBUG: task visible_to: GLOBAL [2024-06-30 00:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-30 00:02:49] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-30 00:02:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 00:02:52] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-06-30 00:02:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-30 00:02:52] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-30 00:04:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-30 00:04:16] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-06-30 01:14:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 01:14:26] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-30 01:14:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:14:53] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-30 01:14:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:14:53] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-30 01:14:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:14:53] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-30 01:14:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-06-30 01:14:57] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 286 ) [2024-06-30 01:15:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:15:03] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-30 01:15:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:15:03] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-30 01:15:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:15:03] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-30 01:15:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:15:37] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-30 01:15:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:15:37] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-30 01:15:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:15:37] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-30 01:15:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:15:48] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-30 01:15:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:15:48] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-30 01:15:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:15:48] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-30 01:15:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 01:15:58] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-30 01:16:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 01:16:17] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-30 01:16:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 01:16:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-30 01:16:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:16:38] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-30 01:16:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:16:38] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-30 01:16:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:16:38] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-30 01:17:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 01:17:21] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-30 01:17:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:17:22] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => -1 [12] => 291 ) [2024-06-30 01:17:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:17:22] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 1 [12] => 291 [13] => -1 [14] => 291 ) [2024-06-30 01:17:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 01:17:23] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 [12] => -1 [13] => 291 ) [2024-06-30 02:21:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 02:21:22] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-30 02:21:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 02:21:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-06-30 04:13:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 04:13:09] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-30 04:13:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 04:13:11] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-30 04:56:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 04:56:15] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-30 05:14:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-30 05:14:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-30 05:14:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-30 05:14:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-30 05:14:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-30 05:14:44] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-30 05:14:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 05:14:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-06-30 05:14:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-06-30 05:14:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-30 05:15:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 05:15:04] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 ) [2024-06-30 05:15:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 05:15:10] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => -1 [8] => 423 ) [2024-06-30 05:15:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 05:15:10] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 1 [8] => 423 [9] => -1 [10] => 423 ) [2024-06-30 05:15:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 05:15:10] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 [8] => -1 [9] => 423 ) [2024-06-30 05:15:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 05:15:13] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 ) [2024-06-30 05:15:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 05:15:27] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 ) [2024-06-30 05:15:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 05:15:27] local.DEBUG: Values for Sql:Array ( [0] => 341 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 423 [7] => 423 ) [2024-06-30 05:15:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-06-30 05:15:28] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-06-30 05:15:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 05:15:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-30 05:15:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 05:15:49] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-06-30 05:15:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 05:15:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-06-30 05:15:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 05:15:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-06-30 05:16:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 05:16:08] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-30 05:18:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 05:18:34] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-30 05:20:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 05:20:43] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-30 05:21:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 05:21:17] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-06-30 05:36:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 05:36:31] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-06-30 06:36:41] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-30 06:36:41] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-06-30 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-06-30 16:32:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 16:32:18] local.DEBUG: Values for Sql:Array ( [0] => 342 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 424 [7] => 424 ) [2024-06-30 16:32:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 16:32:29] local.DEBUG: Values for Sql:Array ( [0] => 342 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 424 [7] => 424 ) [2024-06-30 17:56:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 17:56:57] local.DEBUG: Values for Sql:Array ( [0] => 182 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 233 [7] => 233 ) [2024-06-30 18:00:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 18:00:41] local.DEBUG: Values for Sql:Array ( [0] => 343 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 425 [7] => 425 ) [2024-06-30 18:00:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 18:00:57] local.DEBUG: Values for Sql:Array ( [0] => 343 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 425 [7] => -1 [8] => 425 ) [2024-06-30 18:00:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 18:00:57] local.DEBUG: Values for Sql:Array ( [0] => 343 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 425 [7] => 1 [8] => 425 [9] => -1 [10] => 425 ) [2024-06-30 18:00:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-06-30 18:00:57] local.DEBUG: Values for Sql:Array ( [0] => 343 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 425 [7] => 425 [8] => -1 [9] => 425 ) [2024-06-30 18:01:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-29' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-06-30 18:01:55] local.DEBUG: Values for Sql:Array ( [0] => 343 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 425 [7] => 425 ) [2024-07-01 04:50:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 04:50:27] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-07-01 05:00:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 05:00:54] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 05:01:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 05:01:54] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-07-01 05:01:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 05:01:54] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 05:04:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 05:04:58] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 05:42:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 05:42:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 05:49:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 05:49:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 05:49:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 05:49:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 05:49:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 05:49:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 05:49:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 05:49:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 06:00:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:00:00] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 06:00:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:00:01] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-07-01 06:00:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:00:01] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 06:00:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:00:14] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-07-01 06:00:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 06:00:14] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 06:00:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:00:17] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-07-01 06:00:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:00:17] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 06:00:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 06:00:48] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-07-01 06:00:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:00:56] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => -1 [17] => 87 ) [2024-07-01 06:00:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:00:56] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-07-01 06:00:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:00:56] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 [17] => -1 [18] => 87 ) [2024-07-01 06:04:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 06:04:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 06:04:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:04:17] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 06:04:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:04:17] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 06:04:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:04:17] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 06:04:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 06:04:52] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 ) [2024-07-01 06:04:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 06:04:53] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 ) [2024-07-01 06:04:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:04:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 06:04:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:04:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 06:04:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:04:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 06:05:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 06:05:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 10 [17] => 11 [18] => 12 [19] => 13 [20] => 14 [21] => 15 [22] => 16 [23] => 17 [24] => 18 [25] => 19 [26] => 20 [27] => 21 [28] => 22 [29] => 23 [30] => 24 [31] => 25 [32] => 26 [33] => 27 [34] => 28 [35] => 29 [36] => 30 [37] => 31 [38] => 34 [39] => 35 [40] => 36 [41] => 37 [42] => 38 [43] => 40 [44] => 44 [45] => 45 [46] => 46 [47] => 47 [48] => 48 [49] => 49 [50] => 50 [51] => 51 [52] => 52 [53] => 53 [54] => 54 [55] => 55 [56] => 56 [57] => 57 [58] => 58 [59] => 59 [60] => 77 [61] => 86 [62] => 87 [63] => 88 [64] => 89 [65] => 91 [66] => 92 [67] => 93 [68] => 94 [69] => 95 [70] => 96 [71] => 97 [72] => 98 [73] => 99 [74] => 104 [75] => 105 [76] => 106 [77] => 107 [78] => 108 [79] => 109 [80] => 110 [81] => 111 [82] => 112 [83] => 114 [84] => 115 [85] => 116 [86] => 120 [87] => 123 [88] => 124 [89] => 125 [90] => 126 [91] => 127 [92] => 128 [93] => 129 [94] => 130 [95] => 131 [96] => 132 [97] => 133 [98] => 134 [99] => 135 [100] => 136 [101] => 137 [102] => 138 [103] => 139 [104] => 140 [105] => 141 [106] => 142 [107] => 143 [108] => 144 [109] => 154 [110] => 155 [111] => 156 [112] => 159 [113] => 160 [114] => 161 [115] => 162 [116] => 163 [117] => 164 [118] => 165 [119] => 166 [120] => 167 [121] => 168 [122] => 169 [123] => 170 [124] => 171 [125] => 172 [126] => 173 [127] => 174 [128] => 175 [129] => 176 [130] => 177 [131] => 178 [132] => 179 [133] => 180 [134] => 181 [135] => 182 [136] => 183 [137] => 184 [138] => 185 [139] => 186 [140] => 189 [141] => 190 [142] => 191 [143] => 192 [144] => 193 [145] => 194 [146] => 195 [147] => 196 [148] => 197 [149] => 199 [150] => 200 [151] => 201 [152] => 202 [153] => 203 [154] => 204 [155] => 206 [156] => 207 [157] => 208 [158] => 209 [159] => 210 [160] => 211 [161] => 213 [162] => 214 [163] => 215 [164] => 216 [165] => 217 [166] => 218 [167] => 219 [168] => 220 [169] => 221 [170] => 222 [171] => 223 [172] => 224 [173] => 226 [174] => 227 [175] => 228 [176] => 229 [177] => 230 [178] => 231 [179] => 232 [180] => 233 [181] => 234 [182] => 235 [183] => 236 [184] => 237 [185] => 238 [186] => 239 [187] => 240 [188] => 241 [189] => 242 [190] => 243 [191] => 244 [192] => 245 [193] => 246 [194] => 247 [195] => 248 [196] => 249 [197] => 250 [198] => 251 [199] => 252 [200] => 253 [201] => 254 [202] => 255 [203] => 256 [204] => 257 [205] => 258 [206] => 259 [207] => 260 [208] => 261 [209] => 262 [210] => 263 [211] => 264 [212] => 265 [213] => 266 [214] => 267 [215] => 268 [216] => 269 [217] => 270 [218] => 271 [219] => 272 [220] => 273 [221] => 274 [222] => 275 [223] => 276 [224] => 277 [225] => 278 [226] => 279 [227] => 280 [228] => 281 [229] => 282 [230] => 283 [231] => 284 [232] => 285 [233] => 286 [234] => 287 [235] => 288 [236] => 289 [237] => 290 [238] => 291 [239] => 292 [240] => 293 [241] => 294 [242] => 295 [243] => 296 [244] => 297 [245] => 298 [246] => 299 [247] => 300 [248] => 301 [249] => 302 [250] => 303 [251] => 304 [252] => 305 [253] => 306 [254] => 307 [255] => 308 [256] => 309 [257] => 310 [258] => 311 [259] => 312 [260] => 313 [261] => 314 [262] => 315 [263] => 316 [264] => 317 [265] => 318 [266] => 319 [267] => 320 [268] => 321 [269] => 322 [270] => 323 [271] => 324 [272] => 325 [273] => 326 [274] => 327 [275] => 328 [276] => 329 [277] => 330 [278] => 331 [279] => 332 [280] => 333 [281] => 334 [282] => 335 [283] => 336 [284] => 337 [285] => 338 [286] => 339 [287] => 340 [288] => 341 [289] => 342 [290] => 343 [291] => 344 [292] => 345 [293] => 346 [294] => 347 [295] => 348 [296] => 349 [297] => 350 [298] => 351 [299] => 352 [300] => 353 [301] => 354 [302] => 355 [303] => 356 [304] => 357 [305] => 359 [306] => 360 [307] => 361 [308] => 362 [309] => 363 [310] => 364 [311] => 365 [312] => 366 [313] => 367 [314] => 368 [315] => 369 [316] => 370 [317] => 371 [318] => 372 [319] => 373 [320] => 374 [321] => 375 [322] => 376 [323] => 377 [324] => 378 [325] => 379 [326] => 380 [327] => 381 [328] => 382 [329] => 383 [330] => 384 [331] => 385 [332] => 386 [333] => 387 [334] => 388 [335] => 389 [336] => 390 [337] => 391 [338] => 392 [339] => 393 [340] => 394 [341] => 395 [342] => 396 [343] => 397 [344] => 398 [345] => 399 [346] => 400 [347] => 401 [348] => 402 [349] => 403 [350] => 404 [351] => 405 [352] => 406 [353] => 407 [354] => 408 [355] => 409 [356] => 410 [357] => 411 [358] => 412 [359] => 413 [360] => 414 [361] => 415 [362] => 416 [363] => 417 [364] => 418 [365] => 419 [366] => 420 [367] => 421 [368] => 423 [369] => 424 [370] => 425 [371] => 30 ) [2024-07-01 06:05:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 06:05:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 10 [17] => 11 [18] => 12 [19] => 13 [20] => 14 [21] => 15 [22] => 16 [23] => 17 [24] => 18 [25] => 19 [26] => 20 [27] => 21 [28] => 22 [29] => 23 [30] => 24 [31] => 25 [32] => 26 [33] => 27 [34] => 28 [35] => 29 [36] => 30 [37] => 31 [38] => 34 [39] => 35 [40] => 36 [41] => 37 [42] => 38 [43] => 40 [44] => 44 [45] => 45 [46] => 46 [47] => 47 [48] => 48 [49] => 49 [50] => 50 [51] => 51 [52] => 52 [53] => 53 [54] => 54 [55] => 55 [56] => 56 [57] => 57 [58] => 58 [59] => 59 [60] => 77 [61] => 86 [62] => 87 [63] => 88 [64] => 89 [65] => 91 [66] => 92 [67] => 93 [68] => 94 [69] => 95 [70] => 96 [71] => 97 [72] => 98 [73] => 99 [74] => 104 [75] => 105 [76] => 106 [77] => 107 [78] => 108 [79] => 109 [80] => 110 [81] => 111 [82] => 112 [83] => 114 [84] => 115 [85] => 116 [86] => 120 [87] => 123 [88] => 124 [89] => 125 [90] => 126 [91] => 127 [92] => 128 [93] => 129 [94] => 130 [95] => 131 [96] => 132 [97] => 133 [98] => 134 [99] => 135 [100] => 136 [101] => 137 [102] => 138 [103] => 139 [104] => 140 [105] => 141 [106] => 142 [107] => 143 [108] => 144 [109] => 154 [110] => 155 [111] => 156 [112] => 159 [113] => 160 [114] => 161 [115] => 162 [116] => 163 [117] => 164 [118] => 165 [119] => 166 [120] => 167 [121] => 168 [122] => 169 [123] => 170 [124] => 171 [125] => 172 [126] => 173 [127] => 174 [128] => 175 [129] => 176 [130] => 177 [131] => 178 [132] => 179 [133] => 180 [134] => 181 [135] => 182 [136] => 183 [137] => 184 [138] => 185 [139] => 186 [140] => 189 [141] => 190 [142] => 191 [143] => 192 [144] => 193 [145] => 194 [146] => 195 [147] => 196 [148] => 197 [149] => 199 [150] => 200 [151] => 201 [152] => 202 [153] => 203 [154] => 204 [155] => 206 [156] => 207 [157] => 208 [158] => 209 [159] => 210 [160] => 211 [161] => 213 [162] => 214 [163] => 215 [164] => 216 [165] => 217 [166] => 218 [167] => 219 [168] => 220 [169] => 221 [170] => 222 [171] => 223 [172] => 224 [173] => 226 [174] => 227 [175] => 228 [176] => 229 [177] => 230 [178] => 231 [179] => 232 [180] => 233 [181] => 234 [182] => 235 [183] => 236 [184] => 237 [185] => 238 [186] => 239 [187] => 240 [188] => 241 [189] => 242 [190] => 243 [191] => 244 [192] => 245 [193] => 246 [194] => 247 [195] => 248 [196] => 249 [197] => 250 [198] => 251 [199] => 252 [200] => 253 [201] => 254 [202] => 255 [203] => 256 [204] => 257 [205] => 258 [206] => 259 [207] => 260 [208] => 261 [209] => 262 [210] => 263 [211] => 264 [212] => 265 [213] => 266 [214] => 267 [215] => 268 [216] => 269 [217] => 270 [218] => 271 [219] => 272 [220] => 273 [221] => 274 [222] => 275 [223] => 276 [224] => 277 [225] => 278 [226] => 279 [227] => 280 [228] => 281 [229] => 282 [230] => 283 [231] => 284 [232] => 285 [233] => 286 [234] => 287 [235] => 288 [236] => 289 [237] => 290 [238] => 291 [239] => 292 [240] => 293 [241] => 294 [242] => 295 [243] => 296 [244] => 297 [245] => 298 [246] => 299 [247] => 300 [248] => 301 [249] => 302 [250] => 303 [251] => 304 [252] => 305 [253] => 306 [254] => 307 [255] => 308 [256] => 309 [257] => 310 [258] => 311 [259] => 312 [260] => 313 [261] => 314 [262] => 315 [263] => 316 [264] => 317 [265] => 318 [266] => 319 [267] => 320 [268] => 321 [269] => 322 [270] => 323 [271] => 324 [272] => 325 [273] => 326 [274] => 327 [275] => 328 [276] => 329 [277] => 330 [278] => 331 [279] => 332 [280] => 333 [281] => 334 [282] => 335 [283] => 336 [284] => 337 [285] => 338 [286] => 339 [287] => 340 [288] => 341 [289] => 342 [290] => 343 [291] => 344 [292] => 345 [293] => 346 [294] => 347 [295] => 348 [296] => 349 [297] => 350 [298] => 351 [299] => 352 [300] => 353 [301] => 354 [302] => 355 [303] => 356 [304] => 357 [305] => 359 [306] => 360 [307] => 361 [308] => 362 [309] => 363 [310] => 364 [311] => 365 [312] => 366 [313] => 367 [314] => 368 [315] => 369 [316] => 370 [317] => 371 [318] => 372 [319] => 373 [320] => 374 [321] => 375 [322] => 376 [323] => 377 [324] => 378 [325] => 379 [326] => 380 [327] => 381 [328] => 382 [329] => 383 [330] => 384 [331] => 385 [332] => 386 [333] => 387 [334] => 388 [335] => 389 [336] => 390 [337] => 391 [338] => 392 [339] => 393 [340] => 394 [341] => 395 [342] => 396 [343] => 397 [344] => 398 [345] => 399 [346] => 400 [347] => 401 [348] => 402 [349] => 403 [350] => 404 [351] => 405 [352] => 406 [353] => 407 [354] => 408 [355] => 409 [356] => 410 [357] => 411 [358] => 412 [359] => 413 [360] => 414 [361] => 415 [362] => 416 [363] => 417 [364] => 418 [365] => 419 [366] => 420 [367] => 421 [368] => 423 [369] => 424 [370] => 425 [371] => 30 ) [2024-07-01 06:05:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:05:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 06:05:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:05:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 06:05:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:05:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 06:05:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 06:05:06] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 06:05:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 06:05:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 06:05:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:05:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 06:05:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:05:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 06:05:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:05:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 06:34:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:34:44] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:34:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:34:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:34:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:34:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:34:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:34:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:34:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:34:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:34:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 06:34:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 06:34:56] local.DEBUG: Current Balance: 0 [2024-07-01 06:35:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:35:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:35:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:35:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:35:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:35:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:35:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 06:35:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 5 ) [2024-07-01 06:35:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 06:35:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 89 ) [2024-07-01 06:35:06] local.DEBUG: Current Balance: 0 [2024-07-01 06:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:35:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:35:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:35:42] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:35:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:35:42] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:35:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:35:50] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:35:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:35:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:35:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:35:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:35:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:35:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:35:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 06:35:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 2 ) [2024-07-01 06:36:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:36:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:36:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:36:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:36:17] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-01 06:36:17] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-01 06:36:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:36:20] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:36:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:36:20] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:36:23] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:36:23] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:36:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:36:24] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:36:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:36:24] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:36:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:36:25] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 06:36:27] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 06:36:27] local.DEBUG: Current Balance: 0 [2024-07-01 06:36:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:36:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:36:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:36:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:36:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:36:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:36:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 06:36:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 5 ) [2024-07-01 06:36:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 06:36:39] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 89 ) [2024-07-01 06:36:39] local.DEBUG: Current Balance: 0 [2024-07-01 06:37:01] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-01 06:37:01] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-01 06:37:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:37:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:37:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:37:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:37:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 06:37:08] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 288 ) [2024-07-01 06:37:08] local.DEBUG: Current Balance: 0 [2024-07-01 06:37:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:37:08] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:37:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:37:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:37:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:37:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:37:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:37:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:37:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 06:37:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 208 ) [2024-07-01 06:37:13] local.DEBUG: Current Balance: 0 [2024-07-01 06:37:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:37:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:37:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:37:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:37:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:37:17] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:37:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:37:17] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:37:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:37:19] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:37:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:37:19] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:37:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 06:37:20] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 208 ) [2024-07-01 06:37:20] local.DEBUG: Current Balance: 0 [2024-07-01 06:37:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:37:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:37:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 06:37:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 06:37:21] local.DEBUG: Current Balance: 0 [2024-07-01 06:37:27] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-01 06:37:27] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-01 06:37:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:37:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 06:37:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 06:37:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:37:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 06:37:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 288 ) [2024-07-01 06:37:35] local.DEBUG: Current Balance: 0 [2024-07-01 06:37:40] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-01 06:37:40] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-01 06:38:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:38:00] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:38:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:38:08] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:38:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 06:38:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 06:38:26] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-01 06:38:26] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-01 06:47:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 06:47:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 06:47:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:47:32] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 06:47:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:47:32] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 06:47:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:47:32] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 06:48:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:48:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 06:48:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:48:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 06:48:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:48:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 06:48:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 06:48:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 06:48:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:48:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 06:48:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:48:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 06:48:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:48:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 06:56:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 06:56:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 06:56:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 06:56:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-07-01 06:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:56:19] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 06:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:56:19] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 06:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 06:56:19] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-07-01 07:10:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 07:10:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 07:11:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 07:11:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 07:11:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 07:11:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 07:11:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 07:11:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 08:12:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:12:32] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:12:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:12:36] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:12:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:12:38] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => -1 [8] => 211 ) [2024-07-01 08:12:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:12:38] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 1 [8] => 211 [9] => -1 [10] => 211 ) [2024-07-01 08:12:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:12:38] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 [8] => -1 [9] => 211 ) [2024-07-01 08:12:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:12:57] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:12:58] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => -1 [8] => 211 ) [2024-07-01 08:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:12:58] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 1 [8] => 211 [9] => -1 [10] => 211 ) [2024-07-01 08:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:12:58] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 [8] => -1 [9] => 211 ) [2024-07-01 08:13:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:13:24] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:13:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:13:46] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:14:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:14:24] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:14:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:14:30] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:14:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:14:35] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:14:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:14:48] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:14:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:14:52] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:15:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:15:04] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => -1 [8] => 211 ) [2024-07-01 08:15:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:15:04] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 1 [8] => 211 [9] => -1 [10] => 211 ) [2024-07-01 08:15:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:15:04] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 [8] => -1 [9] => 211 ) [2024-07-01 08:15:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:15:11] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:15:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:15:23] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:15:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:15:30] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:15:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:15:43] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:15:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:15:50] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:15:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:15:56] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => -1 [8] => 211 ) [2024-07-01 08:15:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:15:56] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 1 [8] => 211 [9] => -1 [10] => 211 ) [2024-07-01 08:15:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:15:56] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 [8] => -1 [9] => 211 ) [2024-07-01 08:15:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 08:15:58] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 288 ) [2024-07-01 08:16:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:16:00] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:16:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:16:04] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => -1 [8] => 211 ) [2024-07-01 08:16:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:16:04] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 1 [8] => 211 [9] => -1 [10] => 211 ) [2024-07-01 08:16:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:16:04] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 [8] => -1 [9] => 211 ) [2024-07-01 08:16:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:16:06] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 1 [8] => 211 ) [2024-07-01 08:16:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 08:16:06] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:16:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 08:16:13] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 3 [8] => 211 ) [2024-07-01 08:16:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:16:15] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:16:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:16:25] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => -1 [8] => 211 ) [2024-07-01 08:16:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:16:25] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 1 [8] => 211 [9] => -1 [10] => 211 ) [2024-07-01 08:16:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 08:16:25] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 [8] => -1 [9] => 211 ) [2024-07-01 08:16:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 08:16:27] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 172 ) [2024-07-01 08:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:16:29] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 08:16:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 08:16:34] local.DEBUG: Values for Sql:Array ( [0] => 159 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 211 [7] => 211 ) [2024-07-01 09:03:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 09:03:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 09:03:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 09:03:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 09:03:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 09:03:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 09:03:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 09:03:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 09:25:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 09:25:34] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 09:33:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 09:33:23] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-07-01 09:33:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 09:33:26] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-07-01 10:07:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 10:07:49] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 10:21:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 10:21:05] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-07-01 10:29:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 10:29:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 10:29:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 10:29:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 10:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 10:29:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 10:32:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 10:32:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 10:35:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 10:35:26] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 10:38:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 10:38:06] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 10:45:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 10:45:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 10:46:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 10:46:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 10:47:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 10:47:19] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 10:47:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 10:47:24] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 10:47:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 10:47:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 10:47:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 10:47:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 10:54:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 10:54:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 10:57:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 10:57:53] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 11:32:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 11:32:44] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 11:32:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 11:32:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 11:32:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 11:32:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 11:32:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 11:32:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 11:32:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 11:32:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 288 ) [2024-07-01 11:47:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 11:47:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 11:47:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 11:47:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 11:47:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 11:47:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 11:47:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 11:47:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 208 ) [2024-07-01 11:52:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 11:52:42] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 208 ) [2024-07-01 11:52:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 11:52:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 208 ) [2024-07-01 11:52:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 11:52:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 11:52:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 11:52:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 11:52:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 11:52:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 11:54:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 11:54:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 11:55:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 11:55:40] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 11:58:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 11:58:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 12:00:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:00:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 12:00:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:00:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 12:00:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:00:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 12:16:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 12:16:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 12:16:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:16:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 12:16:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:16:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 12:16:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:16:24] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 12:19:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 12:19:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 12:19:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:19:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 12:19:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:19:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 12:19:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:19:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 12:20:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 12:20:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 288 ) [2024-07-01 12:20:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:20:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 12:20:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:20:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 12:20:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:20:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 12:28:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 12:28:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 12:28:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:28:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 12:28:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:28:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 12:28:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:28:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 12:28:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 12:28:52] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 12:29:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:29:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 12:29:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:29:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 12:29:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:29:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 12:29:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 12:29:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 12:29:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 12:29:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 12:39:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:39:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 12:39:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:39:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 12:39:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:39:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 12:39:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 12:39:11] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 173 ) [2024-07-01 12:39:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 12:39:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 173 ) [2024-07-01 12:39:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 12:39:23] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 173 ) [2024-07-01 12:39:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 12:39:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 173 ) [2024-07-01 12:39:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 12:39:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 173 ) [2024-07-01 12:46:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:46:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 12:46:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:46:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 12:46:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 12:46:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 13:07:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 13:07:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 13:08:16] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"john@gmail.com","name":"John Smith"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>03753<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-07-01 13:08:17] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.fb53b5f0-37aa-11ef-8ded-525400fa05f6.1906e690ecf","object":"email"} [2024-07-01 13:09:42] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"david@gmail.com","name":"David Smith"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>28525<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-07-01 13:09:42] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2e6793d0-37ab-11ef-836d-525400d4bb1c.1906e6a5d8d","object":"email"} [2024-07-01 13:11:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 13:11:27] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 13:28:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 13:28:12] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru [10] => 1 ) [2024-07-01 13:28:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 13:28:12] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 13:29:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 13:29:56] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 13:30:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 13:30:20] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-07-01 13:30:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 13:30:55] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => United States [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => United States [16] => 87 ) [2024-07-01 13:33:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 13:33:06] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 13:53:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 13:53:14] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-01 13:54:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 13:54:36] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-07-01 13:56:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 13:56:54] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-07-01 14:01:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 14:01:23] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-07-01 14:01:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 14:01:44] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-07-01 14:01:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 14:01:45] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-07-01 14:01:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 14:01:45] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-07-01 14:01:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 14:01:45] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-07-01 14:01:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 14:01:47] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-07-01 14:02:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 14:02:04] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-07-01 14:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 14:03:50] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-07-01 14:04:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 14:04:08] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-07-01 14:07:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 14:07:24] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 14:07:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 14:07:36] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 14:07:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 14:07:38] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 14:07:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 14:07:47] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-01 14:09:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 14:09:04] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-01 14:15:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 14:15:21] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => -1 [17] => 87 ) [2024-07-01 14:15:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 14:15:21] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-07-01 14:15:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 14:15:21] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 [17] => -1 [18] => 87 ) [2024-07-01 14:15:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 14:15:24] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-01 14:18:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 14:18:02] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-01 15:37:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 15:37:58] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 15:38:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 15:38:17] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 15:38:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 15:38:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 15:38:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 15:38:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 15:38:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 15:38:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 15:38:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 15:38:58] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-07-01 15:39:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 15:39:02] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-07-01 15:39:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 15:39:11] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 288 ) [2024-07-01 15:39:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 15:39:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 15:39:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 15:39:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 15:39:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 15:39:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 15:43:19] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"merebass1@gmail.com","name":"Brent Severns"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Brent Severns,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Disneyland Trip!!!<\\/li>\\n <li><strong>Assigned By:<\\/strong> Brent Severns<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-07-01 15:43:20] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.a454e3d0-37c0-11ef-b251-525400f92481.1906ef7028d","object":"email"} [2024-07-01 15:45:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 15:45:05] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 15:45:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 15:45:05] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 15:45:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 15:45:05] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 15:47:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 15:47:09] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 172 ) [2024-07-01 15:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 15:50:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 172 ) [2024-07-01 16:07:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:07:49] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 16:07:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:07:49] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 16:07:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:07:49] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 16:07:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:07:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 172 ) [2024-07-01 16:13:24] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => VXp27pklKcb7USqMW2uv6ZNyl21K2Ng5bIxQLVQB [product_id] => 172 [product_uuid] => 2875554a-2ef9-11ef-adc2-5254933aa95c [product_name] => A bicycle for going to school [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 10000 [expires_on] => 01 Nov 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP_OR_TASK [max_claim_allowed_total] => 10000000 [max_claim_allowed_per_user] => 1 [description] => A gearless bicycle [field_type_new_1] => BUTTON [field_name_new_1] => Costic 26 Inch bike [field_label_new_1] => Buy on Amazon [field_data_new_1] => https://www.amazon.com/COSTIC-Mountain-Aluminum-Suspension-Disc-Brake/dp/B0C16MLDF2/ref=sr_1_1_sspa?dib=eyJ2IjoiMSJ9.jhDph7PWoDSP0GEOym5ShYU16Il3_-ZsBwebA9m1rRQArhR-8C2-SnF8UAJeD8Ql2-_mr8S3aPMcBT84HkqOTE3S_zy-z_BVXbi8qOPE0nJf4wjFapZayB5CgPxbWNjIzte9BSbptEVALFd0hMt8JjEYwuqVR-lNXLpVkGwYNDIcwPAroilGr31oYOq7yza8pb9itGZf_-EFBe-1AdGe-373bonz_KReghBCx9A0sac.92SI_-pTuTT-2vIaq4gfe5SuoiI_Cz8M6DFRlQxIBr0&dib_tag=se&keywords=bike&qid=1719850333&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1&smid=A3B7BVRMOZOG5 [action] => ) [2024-07-01 16:13:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:13:28] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 16:13:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:13:28] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 16:13:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:13:28] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 16:13:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:13:30] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 172 ) [2024-07-01 16:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:13:41] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-07-01 16:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:13:41] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-07-01 16:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:13:41] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-07-01 16:13:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:13:53] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 172 ) [2024-07-01 16:14:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:14:00] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-07-01 16:14:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:14:00] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-07-01 16:14:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:14:00] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-07-01 16:15:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:15:27] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 172 ) [2024-07-01 16:15:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:15:32] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-07-01 16:15:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:15:32] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-07-01 16:15:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:15:32] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-07-01 16:15:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 16:15:44] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:15:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 16:15:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:15:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:15:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:15:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:15:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:15:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:15:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 16:15:58] local.DEBUG: Current Balance: 0 [2024-07-01 16:15:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:15:58] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-01 16:15:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:15:58] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:16:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:16:01] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 172 ) [2024-07-01 16:16:01] local.DEBUG: Current Balance: 50 [2024-07-01 16:16:12] local.DEBUG: task visible_to: [2024-07-01 16:16:19] local.DEBUG: task visible_to: [2024-07-01 16:16:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:16:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 16:16:21] local.DEBUG: Current Balance: 0 [2024-07-01 16:16:23] local.DEBUG: task visible_to: [2024-07-01 16:16:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:16:27] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 172 ) [2024-07-01 16:16:27] local.DEBUG: Current Balance: 50 [2024-07-01 16:16:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:16:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 16:16:35] local.DEBUG: Current Balance: 0 [2024-07-01 16:17:02] local.DEBUG: task visible_to: [2024-07-01 16:17:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:17:15] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 16:17:15] local.DEBUG: Current Balance: 0 [2024-07-01 16:17:31] local.DEBUG: task visible_to: [2024-07-01 16:17:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:17:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 16:17:33] local.DEBUG: Current Balance: 0 [2024-07-01 16:17:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:17:47] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-01 16:17:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:17:47] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:17:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:17:50] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:17:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:17:50] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:17:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:17:53] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 16:17:53] local.DEBUG: Current Balance: 0 [2024-07-01 16:17:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:17:55] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 172 ) [2024-07-01 16:17:55] local.DEBUG: Current Balance: 50 [2024-07-01 16:17:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:17:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:17:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:17:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:17:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:17:59] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-01 16:17:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:17:59] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:18:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:18:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:18:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:18:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 16:18:06] local.DEBUG: Current Balance: 0 [2024-07-01 16:18:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:18:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:18:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:18:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 208 ) [2024-07-01 16:18:09] local.DEBUG: Current Balance: 0 [2024-07-01 16:18:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:18:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:10] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:18:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:18:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 16:18:14] local.DEBUG: Current Balance: 0 [2024-07-01 16:18:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:16] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:18:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:16] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:18:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:18:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 16:18:18] local.DEBUG: Current Balance: 0 [2024-07-01 16:18:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:20] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:18:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:20] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:18:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:22] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-01 16:18:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:18:22] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 16:18:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:22] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:18:22] local.DEBUG: Current Balance: 0 [2024-07-01 16:18:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:23] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:18:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:23] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:18:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:18:24] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 208 ) [2024-07-01 16:18:24] local.DEBUG: Current Balance: 50 [2024-07-01 16:18:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:18:26] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 172 ) [2024-07-01 16:18:26] local.DEBUG: Current Balance: 0 [2024-07-01 16:18:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:26] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-01 16:18:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:26] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:18:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:27] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:18:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:27] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:18:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:18:29] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 208 ) [2024-07-01 16:18:29] local.DEBUG: Current Balance: 50 [2024-07-01 16:18:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:30] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-01 16:18:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:30] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:18:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:18:36] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 172 ) [2024-07-01 16:18:36] local.DEBUG: Current Balance: 50 [2024-07-01 16:18:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:38] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-01 16:18:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:38] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:42] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-01 16:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:42] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:18:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:43] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:18:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:43] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:18:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:18:43] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 208 ) [2024-07-01 16:18:43] local.DEBUG: Current Balance: 50 [2024-07-01 16:18:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:18:44] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-01 16:18:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:18:44] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:19:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:19:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:19:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 16:19:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 2 ) [2024-07-01 16:19:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:19:48] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:19:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:19:48] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:19:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:19:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:19:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 16:19:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 3 ) [2024-07-01 16:19:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:19:50] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:19:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:19:50] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:19:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:19:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:19:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 16:19:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 4 ) [2024-07-01 16:19:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:19:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:19:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:19:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:20:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:20:11] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-01 16:20:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:20:11] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 95367 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-01 16:20:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:20:20] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 16:20:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:20:42] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-07-01 16:20:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:20:44] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-07-01 16:20:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:20:44] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-07-01 16:20:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:20:44] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-07-01 16:20:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:20:48] local.DEBUG: Values for Sql:Array ( [0] => 172 ) [2024-07-01 16:20:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:20:49] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-07-01 16:20:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:20:49] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-07-01 16:20:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:20:49] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-07-01 16:21:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 16:21:02] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:21:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:21:04] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-01 16:21:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-01 16:21:04] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 16:21:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:21:08] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 172 ) [2024-07-01 16:21:08] local.DEBUG: Current Balance: 50 [2024-07-01 16:21:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:21:50] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 ) [2024-07-01 16:22:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:22:34] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 16:22:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:22:34] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 16:22:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:22:34] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 16:22:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:22:39] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 16:22:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:22:39] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 16:22:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:22:39] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 16:24:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:24:58] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 16:31:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:31:11] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 16:31:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:31:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 16:31:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:31:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 16:31:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:31:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 16:31:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 16:31:57] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 172 ) [2024-07-01 16:32:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:32:08] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 16:32:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:32:08] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 16:32:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:32:08] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 16:32:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:32:11] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 16:32:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:32:53] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 16:33:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:33:15] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 16:38:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:38:27] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 ) [2024-07-01 16:39:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:39:14] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => -1 [8] => 372 ) [2024-07-01 16:39:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:39:14] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 1 [8] => 372 [9] => -1 [10] => 372 ) [2024-07-01 16:39:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:39:14] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 [8] => -1 [9] => 372 ) [2024-07-01 16:39:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 16:39:30] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 ) [2024-07-01 16:39:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 16:39:32] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 ) [2024-07-01 16:39:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 16:39:33] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 ) [2024-07-01 16:39:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 16:39:35] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 ) [2024-07-01 16:39:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 16:39:36] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 ) [2024-07-01 16:39:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:39:49] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => -1 [8] => 372 ) [2024-07-01 16:39:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:39:49] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 1 [8] => 372 [9] => -1 [10] => 372 ) [2024-07-01 16:39:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:39:49] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 [8] => -1 [9] => 372 ) [2024-07-01 16:39:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:39:52] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 ) [2024-07-01 16:39:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:39:57] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 ) [2024-07-01 16:39:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:39:57] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 ) [2024-07-01 16:40:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 16:40:12] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 ) [2024-07-01 16:45:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:45:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 16:45:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:45:53] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 16:45:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 16:45:53] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 17:10:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 17:10:06] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 17:10:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 17:10:06] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 17:10:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 17:10:06] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 18:06:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 18:06:19] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 18:06:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:06:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 18:06:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:06:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 18:06:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:06:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 18:06:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 18:06:43] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 10 [8] => 11 [9] => 12 [10] => 13 [11] => 14 [12] => 15 [13] => 16 [14] => 17 [15] => 18 [16] => 19 [17] => 20 [18] => 21 [19] => 22 [20] => 23 [21] => 24 [22] => 25 [23] => 26 [24] => 27 [25] => 28 [26] => 29 [27] => 30 [28] => 31 [29] => 34 [30] => 35 [31] => 36 [32] => 37 [33] => 38 [34] => 40 [35] => 44 [36] => 45 [37] => 46 [38] => 47 [39] => 48 [40] => 49 [41] => 50 [42] => 51 [43] => 52 [44] => 53 [45] => 54 [46] => 55 [47] => 56 [48] => 57 [49] => 58 [50] => 59 [51] => 77 [52] => 86 [53] => 87 [54] => 88 [55] => 89 [56] => 91 [57] => 92 [58] => 93 [59] => 94 [60] => 95 [61] => 96 [62] => 97 [63] => 98 [64] => 99 [65] => 104 [66] => 105 [67] => 106 [68] => 107 [69] => 108 [70] => 109 [71] => 110 [72] => 111 [73] => 112 [74] => 114 [75] => 115 [76] => 116 [77] => 120 [78] => 123 [79] => 124 [80] => 125 [81] => 126 [82] => 127 [83] => 128 [84] => 129 [85] => 130 [86] => 131 [87] => 132 [88] => 133 [89] => 134 [90] => 135 [91] => 136 [92] => 137 [93] => 138 [94] => 139 [95] => 140 [96] => 141 [97] => 142 [98] => 143 [99] => 144 [100] => 154 [101] => 155 [102] => 156 [103] => 159 [104] => 160 [105] => 161 [106] => 162 [107] => 163 [108] => 164 [109] => 165 [110] => 166 [111] => 167 [112] => 168 [113] => 169 [114] => 170 [115] => 171 [116] => 172 [117] => 173 [118] => 174 [119] => 175 [120] => 176 [121] => 177 [122] => 178 [123] => 179 [124] => 180 [125] => 181 [126] => 182 [127] => 183 [128] => 184 [129] => 185 [130] => 186 [131] => 189 [132] => 190 [133] => 191 [134] => 192 [135] => 193 [136] => 194 [137] => 195 [138] => 196 [139] => 197 [140] => 199 [141] => 200 [142] => 201 [143] => 202 [144] => 203 [145] => 204 [146] => 206 [147] => 207 [148] => 208 [149] => 209 [150] => 210 [151] => 211 [152] => 213 [153] => 214 [154] => 215 [155] => 216 [156] => 217 [157] => 218 [158] => 219 [159] => 220 [160] => 221 [161] => 222 [162] => 223 [163] => 224 [164] => 226 [165] => 227 [166] => 228 [167] => 229 [168] => 230 [169] => 231 [170] => 232 [171] => 233 [172] => 234 [173] => 235 [174] => 236 [175] => 237 [176] => 238 [177] => 239 [178] => 240 [179] => 241 [180] => 242 [181] => 243 [182] => 244 [183] => 245 [184] => 246 [185] => 247 [186] => 248 [187] => 249 [188] => 250 [189] => 251 [190] => 252 [191] => 253 [192] => 254 [193] => 255 [194] => 256 [195] => 257 [196] => 258 [197] => 259 [198] => 260 [199] => 261 [200] => 262 [201] => 263 [202] => 264 [203] => 265 [204] => 266 [205] => 267 [206] => 268 [207] => 269 [208] => 270 [209] => 271 [210] => 272 [211] => 273 [212] => 274 [213] => 275 [214] => 276 [215] => 277 [216] => 278 [217] => 279 [218] => 280 [219] => 281 [220] => 282 [221] => 283 [222] => 284 [223] => 285 [224] => 286 [225] => 287 [226] => 288 [227] => 289 [228] => 290 [229] => 291 [230] => 292 [231] => 293 [232] => 294 [233] => 295 [234] => 296 [235] => 297 [236] => 298 [237] => 299 [238] => 300 [239] => 301 [240] => 302 [241] => 303 [242] => 304 [243] => 305 [244] => 306 [245] => 307 [246] => 308 [247] => 309 [248] => 310 [249] => 311 [250] => 312 [251] => 313 [252] => 314 [253] => 315 [254] => 316 [255] => 317 [256] => 318 [257] => 319 [258] => 320 [259] => 321 [260] => 322 [261] => 323 [262] => 324 [263] => 325 [264] => 326 [265] => 327 [266] => 328 [267] => 329 [268] => 330 [269] => 331 [270] => 332 [271] => 333 [272] => 334 [273] => 335 [274] => 336 [275] => 337 [276] => 338 [277] => 339 [278] => 340 [279] => 341 [280] => 342 [281] => 343 [282] => 344 [283] => 345 [284] => 346 [285] => 347 [286] => 348 [287] => 349 [288] => 350 [289] => 351 [290] => 352 [291] => 353 [292] => 354 [293] => 355 [294] => 356 [295] => 357 [296] => 359 [297] => 360 [298] => 361 [299] => 362 [300] => 363 [301] => 364 [302] => 365 [303] => 366 [304] => 367 [305] => 368 [306] => 369 [307] => 370 [308] => 371 [309] => 372 [310] => 373 [311] => 374 [312] => 375 [313] => 376 [314] => 377 [315] => 378 [316] => 379 [317] => 380 [318] => 381 [319] => 382 [320] => 383 [321] => 384 [322] => 385 [323] => 386 [324] => 387 [325] => 388 [326] => 389 [327] => 390 [328] => 391 [329] => 392 [330] => 393 [331] => 394 [332] => 395 [333] => 396 [334] => 397 [335] => 398 [336] => 399 [337] => 400 [338] => 401 [339] => 402 [340] => 403 [341] => 404 [342] => 405 [343] => 406 [344] => 407 [345] => 408 [346] => 409 [347] => 410 [348] => 411 [349] => 412 [350] => 413 [351] => 414 [352] => 415 [353] => 416 [354] => 417 [355] => 418 [356] => 419 [357] => 420 [358] => 421 [359] => 423 [360] => 424 [361] => 425 [362] => 213 ) [2024-07-01 18:06:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:06:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 18:06:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:06:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 18:06:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:06:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 18:12:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 18:12:35] local.DEBUG: Values for Sql:Array ( [0] => 307 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 372 [7] => 372 ) [2024-07-01 18:13:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 18:13:47] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 18:13:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:13:48] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 18:13:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:13:48] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 18:13:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:13:48] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 18:13:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 18:13:54] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 18:13:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 18:13:55] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 18:13:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 18:13:56] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 18:50:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 18:50:27] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-01 18:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:50:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 18:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:50:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 18:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:50:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 18:51:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:51:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-01 18:51:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:51:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-01 18:51:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 18:51:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-01 18:51:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 18:51:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 126 ) [2024-07-01 19:04:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 19:04:45] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-07-01 19:04:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 19:04:45] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-07-01 19:04:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 19:04:45] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-07-01 19:04:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 19:04:57] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 10 [8] => 11 [9] => 12 [10] => 13 [11] => 14 [12] => 15 [13] => 16 [14] => 17 [15] => 18 [16] => 19 [17] => 20 [18] => 21 [19] => 22 [20] => 23 [21] => 24 [22] => 25 [23] => 26 [24] => 27 [25] => 28 [26] => 29 [27] => 30 [28] => 31 [29] => 34 [30] => 35 [31] => 36 [32] => 37 [33] => 38 [34] => 40 [35] => 44 [36] => 45 [37] => 46 [38] => 47 [39] => 48 [40] => 49 [41] => 50 [42] => 51 [43] => 52 [44] => 53 [45] => 54 [46] => 55 [47] => 56 [48] => 57 [49] => 58 [50] => 59 [51] => 77 [52] => 86 [53] => 87 [54] => 88 [55] => 89 [56] => 91 [57] => 92 [58] => 93 [59] => 94 [60] => 95 [61] => 96 [62] => 97 [63] => 98 [64] => 99 [65] => 104 [66] => 105 [67] => 106 [68] => 107 [69] => 108 [70] => 109 [71] => 110 [72] => 111 [73] => 112 [74] => 114 [75] => 115 [76] => 116 [77] => 120 [78] => 123 [79] => 124 [80] => 125 [81] => 126 [82] => 127 [83] => 128 [84] => 129 [85] => 130 [86] => 131 [87] => 132 [88] => 133 [89] => 134 [90] => 135 [91] => 136 [92] => 137 [93] => 138 [94] => 139 [95] => 140 [96] => 141 [97] => 142 [98] => 143 [99] => 144 [100] => 154 [101] => 155 [102] => 156 [103] => 159 [104] => 160 [105] => 161 [106] => 162 [107] => 163 [108] => 164 [109] => 165 [110] => 166 [111] => 167 [112] => 168 [113] => 169 [114] => 170 [115] => 171 [116] => 172 [117] => 173 [118] => 174 [119] => 175 [120] => 176 [121] => 177 [122] => 178 [123] => 179 [124] => 180 [125] => 181 [126] => 182 [127] => 183 [128] => 184 [129] => 185 [130] => 186 [131] => 189 [132] => 190 [133] => 191 [134] => 192 [135] => 193 [136] => 194 [137] => 195 [138] => 196 [139] => 197 [140] => 199 [141] => 200 [142] => 201 [143] => 202 [144] => 203 [145] => 204 [146] => 206 [147] => 207 [148] => 208 [149] => 209 [150] => 210 [151] => 211 [152] => 213 [153] => 214 [154] => 215 [155] => 216 [156] => 217 [157] => 218 [158] => 219 [159] => 220 [160] => 221 [161] => 222 [162] => 223 [163] => 224 [164] => 226 [165] => 227 [166] => 228 [167] => 229 [168] => 230 [169] => 231 [170] => 232 [171] => 233 [172] => 234 [173] => 235 [174] => 236 [175] => 237 [176] => 238 [177] => 239 [178] => 240 [179] => 241 [180] => 242 [181] => 243 [182] => 244 [183] => 245 [184] => 246 [185] => 247 [186] => 248 [187] => 249 [188] => 250 [189] => 251 [190] => 252 [191] => 253 [192] => 254 [193] => 255 [194] => 256 [195] => 257 [196] => 258 [197] => 259 [198] => 260 [199] => 261 [200] => 262 [201] => 263 [202] => 264 [203] => 265 [204] => 266 [205] => 267 [206] => 268 [207] => 269 [208] => 270 [209] => 271 [210] => 272 [211] => 273 [212] => 274 [213] => 275 [214] => 276 [215] => 277 [216] => 278 [217] => 279 [218] => 280 [219] => 281 [220] => 282 [221] => 283 [222] => 284 [223] => 285 [224] => 286 [225] => 287 [226] => 288 [227] => 289 [228] => 290 [229] => 291 [230] => 292 [231] => 293 [232] => 294 [233] => 295 [234] => 296 [235] => 297 [236] => 298 [237] => 299 [238] => 300 [239] => 301 [240] => 302 [241] => 303 [242] => 304 [243] => 305 [244] => 306 [245] => 307 [246] => 308 [247] => 309 [248] => 310 [249] => 311 [250] => 312 [251] => 313 [252] => 314 [253] => 315 [254] => 316 [255] => 317 [256] => 318 [257] => 319 [258] => 320 [259] => 321 [260] => 322 [261] => 323 [262] => 324 [263] => 325 [264] => 326 [265] => 327 [266] => 328 [267] => 329 [268] => 330 [269] => 331 [270] => 332 [271] => 333 [272] => 334 [273] => 335 [274] => 336 [275] => 337 [276] => 338 [277] => 339 [278] => 340 [279] => 341 [280] => 342 [281] => 343 [282] => 344 [283] => 345 [284] => 346 [285] => 347 [286] => 348 [287] => 349 [288] => 350 [289] => 351 [290] => 352 [291] => 353 [292] => 354 [293] => 355 [294] => 356 [295] => 357 [296] => 359 [297] => 360 [298] => 361 [299] => 362 [300] => 363 [301] => 364 [302] => 365 [303] => 366 [304] => 367 [305] => 368 [306] => 369 [307] => 370 [308] => 371 [309] => 372 [310] => 373 [311] => 374 [312] => 375 [313] => 376 [314] => 377 [315] => 378 [316] => 379 [317] => 380 [318] => 381 [319] => 382 [320] => 383 [321] => 384 [322] => 385 [323] => 386 [324] => 387 [325] => 388 [326] => 389 [327] => 390 [328] => 391 [329] => 392 [330] => 393 [331] => 394 [332] => 395 [333] => 396 [334] => 397 [335] => 398 [336] => 399 [337] => 400 [338] => 401 [339] => 402 [340] => 403 [341] => 404 [342] => 405 [343] => 406 [344] => 407 [345] => 408 [346] => 409 [347] => 410 [348] => 411 [349] => 412 [350] => 413 [351] => 414 [352] => 415 [353] => 416 [354] => 417 [355] => 418 [356] => 419 [357] => 420 [358] => 421 [359] => 423 [360] => 424 [361] => 425 [362] => 110 ) [2024-07-01 19:05:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 19:05:04] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-07-01 19:05:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 19:05:04] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-07-01 19:05:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 19:05:04] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-07-01 19:05:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 19:05:17] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 126 ) [2024-07-01 19:09:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 19:09:18] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => -1 [8] => 110 ) [2024-07-01 19:09:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 19:09:18] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 1 [8] => 110 [9] => -1 [10] => 110 ) [2024-07-01 19:09:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 19:09:18] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 110 [8] => -1 [9] => 110 ) [2024-07-01 19:09:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 19:09:21] local.DEBUG: Values for Sql:Array ( [0] => 77 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 110 [7] => 10 [8] => 11 [9] => 12 [10] => 13 [11] => 14 [12] => 15 [13] => 16 [14] => 17 [15] => 18 [16] => 19 [17] => 20 [18] => 21 [19] => 22 [20] => 23 [21] => 24 [22] => 25 [23] => 26 [24] => 27 [25] => 28 [26] => 29 [27] => 30 [28] => 31 [29] => 34 [30] => 35 [31] => 36 [32] => 37 [33] => 38 [34] => 40 [35] => 44 [36] => 45 [37] => 46 [38] => 47 [39] => 48 [40] => 49 [41] => 50 [42] => 51 [43] => 52 [44] => 53 [45] => 54 [46] => 55 [47] => 56 [48] => 57 [49] => 58 [50] => 59 [51] => 77 [52] => 86 [53] => 87 [54] => 88 [55] => 89 [56] => 91 [57] => 92 [58] => 93 [59] => 94 [60] => 95 [61] => 96 [62] => 97 [63] => 98 [64] => 99 [65] => 104 [66] => 105 [67] => 106 [68] => 107 [69] => 108 [70] => 109 [71] => 110 [72] => 111 [73] => 112 [74] => 114 [75] => 115 [76] => 116 [77] => 120 [78] => 123 [79] => 124 [80] => 125 [81] => 126 [82] => 127 [83] => 128 [84] => 129 [85] => 130 [86] => 131 [87] => 132 [88] => 133 [89] => 134 [90] => 135 [91] => 136 [92] => 137 [93] => 138 [94] => 139 [95] => 140 [96] => 141 [97] => 142 [98] => 143 [99] => 144 [100] => 154 [101] => 155 [102] => 156 [103] => 159 [104] => 160 [105] => 161 [106] => 162 [107] => 163 [108] => 164 [109] => 165 [110] => 166 [111] => 167 [112] => 168 [113] => 169 [114] => 170 [115] => 171 [116] => 172 [117] => 173 [118] => 174 [119] => 175 [120] => 176 [121] => 177 [122] => 178 [123] => 179 [124] => 180 [125] => 181 [126] => 182 [127] => 183 [128] => 184 [129] => 185 [130] => 186 [131] => 189 [132] => 190 [133] => 191 [134] => 192 [135] => 193 [136] => 194 [137] => 195 [138] => 196 [139] => 197 [140] => 199 [141] => 200 [142] => 201 [143] => 202 [144] => 203 [145] => 204 [146] => 206 [147] => 207 [148] => 208 [149] => 209 [150] => 210 [151] => 211 [152] => 213 [153] => 214 [154] => 215 [155] => 216 [156] => 217 [157] => 218 [158] => 219 [159] => 220 [160] => 221 [161] => 222 [162] => 223 [163] => 224 [164] => 226 [165] => 227 [166] => 228 [167] => 229 [168] => 230 [169] => 231 [170] => 232 [171] => 233 [172] => 234 [173] => 235 [174] => 236 [175] => 237 [176] => 238 [177] => 239 [178] => 240 [179] => 241 [180] => 242 [181] => 243 [182] => 244 [183] => 245 [184] => 246 [185] => 247 [186] => 248 [187] => 249 [188] => 250 [189] => 251 [190] => 252 [191] => 253 [192] => 254 [193] => 255 [194] => 256 [195] => 257 [196] => 258 [197] => 259 [198] => 260 [199] => 261 [200] => 262 [201] => 263 [202] => 264 [203] => 265 [204] => 266 [205] => 267 [206] => 268 [207] => 269 [208] => 270 [209] => 271 [210] => 272 [211] => 273 [212] => 274 [213] => 275 [214] => 276 [215] => 277 [216] => 278 [217] => 279 [218] => 280 [219] => 281 [220] => 282 [221] => 283 [222] => 284 [223] => 285 [224] => 286 [225] => 287 [226] => 288 [227] => 289 [228] => 290 [229] => 291 [230] => 292 [231] => 293 [232] => 294 [233] => 295 [234] => 296 [235] => 297 [236] => 298 [237] => 299 [238] => 300 [239] => 301 [240] => 302 [241] => 303 [242] => 304 [243] => 305 [244] => 306 [245] => 307 [246] => 308 [247] => 309 [248] => 310 [249] => 311 [250] => 312 [251] => 313 [252] => 314 [253] => 315 [254] => 316 [255] => 317 [256] => 318 [257] => 319 [258] => 320 [259] => 321 [260] => 322 [261] => 323 [262] => 324 [263] => 325 [264] => 326 [265] => 327 [266] => 328 [267] => 329 [268] => 330 [269] => 331 [270] => 332 [271] => 333 [272] => 334 [273] => 335 [274] => 336 [275] => 337 [276] => 338 [277] => 339 [278] => 340 [279] => 341 [280] => 342 [281] => 343 [282] => 344 [283] => 345 [284] => 346 [285] => 347 [286] => 348 [287] => 349 [288] => 350 [289] => 351 [290] => 352 [291] => 353 [292] => 354 [293] => 355 [294] => 356 [295] => 357 [296] => 359 [297] => 360 [298] => 361 [299] => 362 [300] => 363 [301] => 364 [302] => 365 [303] => 366 [304] => 367 [305] => 368 [306] => 369 [307] => 370 [308] => 371 [309] => 372 [310] => 373 [311] => 374 [312] => 375 [313] => 376 [314] => 377 [315] => 378 [316] => 379 [317] => 380 [318] => 381 [319] => 382 [320] => 383 [321] => 384 [322] => 385 [323] => 386 [324] => 387 [325] => 388 [326] => 389 [327] => 390 [328] => 391 [329] => 392 [330] => 393 [331] => 394 [332] => 395 [333] => 396 [334] => 397 [335] => 398 [336] => 399 [337] => 400 [338] => 401 [339] => 402 [340] => 403 [341] => 404 [342] => 405 [343] => 406 [344] => 407 [345] => 408 [346] => 409 [347] => 410 [348] => 411 [349] => 412 [350] => 413 [351] => 414 [352] => 415 [353] => 416 [354] => 417 [355] => 418 [356] => 419 [357] => 420 [358] => 421 [359] => 423 [360] => 424 [361] => 425 [362] => 110 ) [2024-07-01 21:49:12] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 256 [product_uuid] => 28756d9f-2ef9-11ef-adc2-5254933aa95c [product_name] => Nike Men's Low Neck top [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 10000 [expires_on] => 31 May 2024 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP_OR_TASK [max_claim_allowed_total] => 10 [max_claim_allowed_per_user] => 10 [description] => Braided and synthetic fabric on the upper provides a lightweight fit and airy feel [field_type_3] => BUTTON [field_name_3] => buynow [field_label_3] => Buy on Amazon [field_data_3] => https://www.amazon.com/hz/mobile/mission?p=1%2B8YzhInGgpEAxtXkj06MTmO1UjYnV7QvP6ysQBjgeSmdMOZO%2Fr%2FLLiTM%2F70gOPAbD5K2km6Ve%2FLP%2FP1blfTtTHu2j0Kxdd6%2FcF9lT6lX7uNhHIvuOiwFPnCN4%2B%2BXkVapFbvhhSbec782OGA9FoDcSbFal7dWU3oI98un%2BOpKNCGab%2BlnPBBoDAX6vqkZpW5wJ5%2BEZ0TZX5v4YKfSBg2aB0iHXvfZzGrHRNXJrZemWX39xZ42fKvjtW0b8gFpVL0u5HbvKe7AWciFQRSJKEUvlob%2BBZPP7usC3F04Kf1xzhud5t0oC1l0nH1jxNko3feMBSnAdbz12SOVdolP1hPVpAeDY8CdlAqhZl%2FlAzI0mL8tNMpil556xXObwNrDWuLoRctF6Hzqx7%2Fsxo03MXY7BkgmeG7OXCiPqwf9LHFlo68arE1J91nHq8KyEmHXBAu&ref_=nb_sb_ss_di_ci_mcx_mi_ci-mcx-ksf1_2&crid=F8U3JV6M1Y1G [action] => ) [2024-07-01 22:10:06] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 256 [product_uuid] => 28756d9f-2ef9-11ef-adc2-5254933aa95c [product_name] => Nike Men's Low Neck Top SHoe [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 1500 [expires_on] => 01 May 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP_OR_TASK [max_claim_allowed_total] => 10000 [max_claim_allowed_per_user] => 10 [description] => *Braided and synthetic fabric on the upper provides a lightweight fit and airy feel *Foam midsole is soft and comfortable *Elastic inner sleeve and booty-like structure create a custom fit *Rubber on the sole adds traction and durability [field_type_3] => BUTTON [field_name_3] => Amazon Link [field_label_3] => Buy on Amazon [field_data_3] => https://www.amazon.com/Nike-Black-Anthracite-White-Anthracite-White/dp/B078X13LM6/ref=pd_ci_mcx_mh_mcx_views_0?pd_rd_w=ZPPK6&content-id=amzn1.sym.352fa4e9-2aa8-47c3-b5ac-8a90ddbece20%3Aamzn1.symc.40e6a10e-cbc4-4fa5-81e3-4435ff64d03b&pf_rd_p=352fa4e9-2aa8-47c3-b5ac-8a90ddbece20&pf_rd_r=DRNGZ5CRE7F1B3PVF0A8&pd_rd_wg=C8nk7&pd_rd_r=995f35c5-098e-47a6-99f7-f511e762b528&pd_rd_i=B078X13LM6 [action] => ) [2024-07-01 22:10:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 22:10:17] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:10:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:10:18] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:10:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:10:18] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:10:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:10:18] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:10:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 22:10:19] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 256 ) [2024-07-01 22:11:11] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 256 [product_uuid] => 28756d9f-2ef9-11ef-adc2-5254933aa95c [product_name] => Nike Men's Low Neck Top SHoe [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 1500 [expires_on] => 01 May 2024 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => 10000 [max_claim_allowed_per_user] => 10 [description] => *Braided and synthetic fabric on the upper provides a lightweight fit and airy feel *Foam midsole is soft and comfortable *Elastic inner sleeve and booty-like structure create a custom fit *Rubber on the sole adds traction and durability [field_type_3] => BUTTON [field_name_3] => Amazon Link [field_label_3] => Buy on Amazon [field_data_3] => https://www.amazon.com/Nike-Black-Anthracite-White-Anthracite-White/dp/B078X13LM6/ref=pd_ci_mcx_mh_mcx_views_0?pd_rd_w=ZPPK6&content-id=amzn1.sym.352fa4e9-2aa8-47c3-b5ac-8a90ddbece20%3Aamzn1.symc.40e6a10e-cbc4-4fa5-81e3-4435ff64d03b&pf_rd_p=352fa4e9-2aa8-47c3-b5ac-8a90ddbece20&pf_rd_r=DRNGZ5CRE7F1B3PVF0A8&pd_rd_wg=C8nk7&pd_rd_r=995f35c5-098e-47a6-99f7-f511e762b528&pd_rd_i=B078X13LM6 [action] => ) [2024-07-01 22:11:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:11:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:11:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:11:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:11:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:11:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:11:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:11:51] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:11:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:11:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:11:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:11:53] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:13:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:13:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:13:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:13:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:31] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 ) [2024-07-01 22:13:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:13:31] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:13:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:13:33] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 2 [8] => 213 ) [2024-07-01 22:13:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:34] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 ) [2024-07-01 22:13:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:13:34] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:13:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:13:35] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 3 [8] => 213 ) [2024-07-01 22:13:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:36] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 ) [2024-07-01 22:13:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:13:36] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:13:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:13:38] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 5 [8] => 213 ) [2024-07-01 22:13:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:39] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 ) [2024-07-01 22:13:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:13:39] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:13:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:13:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:13:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:13:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 22:13:55] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:58] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:58] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:13:58] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:14:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:14:21] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:14:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:14:21] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:14:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:14:21] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:14:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:14:23] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:14:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:14:25] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:14:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 22:14:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:14:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:14:30] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:14:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:14:30] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:14:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:14:30] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:14:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 22:14:48] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:14:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:14:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:14:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:14:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:14:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:14:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:15:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 22:15:33] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 22:15:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:15:36] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:15:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:15:36] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:15:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:15:36] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:16:03] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 256 [product_uuid] => 28756d9f-2ef9-11ef-adc2-5254933aa95c [product_name] => Nike Men's Low Neck Top SHoe [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 1500 [expires_on] => 01 May 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => 10000 [max_claim_allowed_per_user] => 10 [description] => *Braided and synthetic fabric on the upper provides a lightweight fit and airy feel *Foam midsole is soft and comfortable *Elastic inner sleeve and booty-like structure create a custom fit *Rubber on the sole adds traction and durability [field_type_3] => BUTTON [field_name_3] => Amazon Link [field_label_3] => Buy on Amazon [field_data_3] => https://www.amazon.com/Nike-Black-Anthracite-White-Anthracite-White/dp/B078X13LM6/ref=pd_ci_mcx_mh_mcx_views_0?pd_rd_w=ZPPK6&content-id=amzn1.sym.352fa4e9-2aa8-47c3-b5ac-8a90ddbece20%3Aamzn1.symc.40e6a10e-cbc4-4fa5-81e3-4435ff64d03b&pf_rd_p=352fa4e9-2aa8-47c3-b5ac-8a90ddbece20&pf_rd_r=DRNGZ5CRE7F1B3PVF0A8&pd_rd_wg=C8nk7&pd_rd_r=995f35c5-098e-47a6-99f7-f511e762b528&pd_rd_i=B078X13LM6 [action] => ) [2024-07-01 22:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:16:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:16:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:16:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:17:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:17:06] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:17:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:17:06] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:17:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:17:06] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:17:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 22:17:21] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 256 ) [2024-07-01 22:18:03] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 256 [product_uuid] => 28756d9f-2ef9-11ef-adc2-5254933aa95c [product_name] => Nike Men's Low Neck Top Shoe [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 1500 [expires_on] => 01 May 2024 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => 10000 [max_claim_allowed_per_user] => 10 [description] => *Braided and synthetic fabric on the upper provides a lightweight fit and airy feel *Foam midsole is soft and comfortable *Elastic inner sleeve and booty-like structure create a custom fit *Rubber on the sole adds traction and durability [field_type_3] => BUTTON [field_name_3] => Amazon Link [field_label_3] => Buy on Amazon [field_data_3] => https://www.amazon.com/Nike-Black-Anthracite-White-Anthracite-White/dp/B078X13LM6/ref=pd_ci_mcx_mh_mcx_views_0?pd_rd_w=ZPPK6&content-id=amzn1.sym.352fa4e9-2aa8-47c3-b5ac-8a90ddbece20%3Aamzn1.symc.40e6a10e-cbc4-4fa5-81e3-4435ff64d03b&pf_rd_p=352fa4e9-2aa8-47c3-b5ac-8a90ddbece20&pf_rd_r=DRNGZ5CRE7F1B3PVF0A8&pd_rd_wg=C8nk7&pd_rd_r=995f35c5-098e-47a6-99f7-f511e762b528&pd_rd_i=B078X13LM6 [action] => ) [2024-07-01 22:41:35] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 208 [product_uuid] => 28756051-2ef9-11ef-adc2-5254933aa95c [product_name] => $10 Amazon gift card [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 1000 [expires_on] => 01 Jul 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP_OR_TASK [max_claim_allowed_total] => 100000 [max_claim_allowed_per_user] => 5 [description] => $10 Amazon gift vouchers for first 100k users. [field_type_new_1] => BUTTON [field_name_new_1] => [field_label_new_1] => [field_data_new_1] => [action] => ) [2024-07-01 22:45:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:45:33] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:45:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:45:33] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:45:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:45:33] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:45:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 22:45:34] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 208 ) [2024-07-01 22:55:13] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 208 [product_uuid] => 28756051-2ef9-11ef-adc2-5254933aa95c [product_name] => $10 Amazon gift card [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 1000 [expires_on] => 31 Jul 2024 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP_OR_TASK [max_claim_allowed_total] => 100000 [max_claim_allowed_per_user] => 5 [description] => $10 Amazon gift card for first 100k users. [action] => ) [2024-07-01 22:55:55] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 208 [product_uuid] => 28756051-2ef9-11ef-adc2-5254933aa95c [product_name] => $10 Amazon gift card [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 100 [expires_on] => [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP_OR_TASK [max_claim_allowed_total] => 100000 [max_claim_allowed_per_user] => 5 [description] => $10 Amazon gift card for first 100k users. [action] => ) [2024-07-01 22:57:17] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 208 [product_uuid] => 28756051-2ef9-11ef-adc2-5254933aa95c [product_name] => $10 Amazon Gift Card [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 100 [expires_on] => 01 Jul 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP_OR_TASK [max_claim_allowed_total] => 100000 [max_claim_allowed_per_user] => 5 [description] => $10 Amazon gift card for first 100k users. [field_type_new_1] => BUTTON [field_name_new_1] => Amazon Link [field_label_new_1] => Buy on Amazon [field_data_new_1] => https://www.amazon.com/Amazon-eGift-Card-Logo/dp/B07PCMWTSG/ref=sr_1_1?crid=1FLH74LP48WWC&dib=eyJ2IjoiMSJ9.tuFkiRZ8vAVUqqgxVU-HWzjAkmpFzGpQai616OhS6_qVTb-Gb8BIf7Nm0_TZUD5jAtYwcfEb8rIeyvGo9aXtz_aG5l0nMJctKs34_2Cwsl95WIckdiiVdfbT0litTG4IrRvhgi7ijpCtd1c6LE5b_c3jKzpXHg8W4hYY147raz0eSiK5w467sUMoytsgxeU-EfSRT-o2oVHHC4pD57WWQXkDaT_ezBBjIxoOM8D_hiksFCmpDtdbaMB0s3J6Ezud2aUnn8ytKHZB4mjefG9KwAWqcP3CtTJlgZ7Hr9yKRJk.Pxky0cSCGJ-ozfOiq_ckDqw5rFym_QU-PofzRlJoM_Q&dib_tag=se&keywords=Amazon+gift+cards&qid=1719872985&sprefix=amazon+gift+cards%2Caps%2C227&sr=8-1 [action] => ) [2024-07-01 22:57:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:57:25] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:57:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:57:25] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:57:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:57:25] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:57:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 22:57:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 208 ) [2024-07-01 22:58:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 22:58:14] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 208 ) [2024-07-01 22:58:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:58:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 22:58:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:58:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 22:58:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 22:58:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 22:58:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 22:58:51] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 208 ) [2024-07-01 23:00:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-01 23:00:14] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 23:00:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:00:14] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:00:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:00:14] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:00:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:00:14] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:00:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:00:16] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 ) [2024-07-01 23:00:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 23:00:16] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 23:00:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:00:20] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 208 ) [2024-07-01 23:00:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:00:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 ) [2024-07-01 23:00:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 23:00:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 23:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:04:24] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 208 ) [2024-07-01 23:04:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:04:59] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 ) [2024-07-01 23:04:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 23:04:59] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 23:05:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:05:01] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 208 ) [2024-07-01 23:05:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:05:38] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 ) [2024-07-01 23:05:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 23:05:38] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 23:05:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 23:05:39] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 3 [8] => 213 ) [2024-07-01 23:05:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:05:41] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 ) [2024-07-01 23:05:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 23:05:41] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 23:07:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:07:13] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:07:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:07:13] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:07:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:07:13] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:07:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 23:07:29] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 2 [8] => 213 ) [2024-07-01 23:08:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:08:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:08:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:08:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:08:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:08:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:09:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:09:50] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 208 ) [2024-07-01 23:09:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:09:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:09:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:09:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:09:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:09:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:09:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:09:52] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 173 ) [2024-07-01 23:14:20] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 173 [product_uuid] => 2875558b-2ef9-11ef-adc2-5254933aa95c [product_name] => Soccer Ball - Nike Nk Academy [product_type] => REWARD [product_category_id] => 3 [task_id] => [product_sp] => 500 [expires_on] => 01 May 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => 10000000 [max_claim_allowed_per_user] => 100 [description] => The Nike Academy Soccer Ball features innovative grooves designed for consistent spin when the ball is in the air. High-contrast graphics help you easily track the ball. Shown: White/Black/Volt [field_type_new_1] => BUTTON [field_name_new_1] => Amazon Link [field_label_new_1] => Buy on Amazon [field_data_new_1] => https://www.amazon.com/Nike-Unisexs-NK-Academy-Recreational/dp/B08QVQGKRG/ref=pd_ci_mcx_mh_mcx_views_0?pd_rd_w=ax2pT&content-id=amzn1.sym.352fa4e9-2aa8-47c3-b5ac-8a90ddbece20%3Aamzn1.symc.40e6a10e-cbc4-4fa5-81e3-4435ff64d03b&pf_rd_p=352fa4e9-2aa8-47c3-b5ac-8a90ddbece20&pf_rd_r=2DQ5H7EP8DT8PTH2QEV1&pd_rd_wg=xnqnh&pd_rd_r=1b4094fd-e0b0-475d-9fa1-a1995a1d07cf&pd_rd_i=B08QVQGKRG&th=1 [action] => ) [2024-07-01 23:14:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:14:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:14:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:14:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:14:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:14:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:14:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:14:26] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 173 ) [2024-07-01 23:20:52] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 173 [product_uuid] => 2875558b-2ef9-11ef-adc2-5254933aa95c [product_name] => Soccer Ball - Nike Nk Academy [product_type] => REWARD [product_category_id] => 3 [task_id] => 329 [product_sp] => 500 [expires_on] => 01 May 2024 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => 10000000 [max_claim_allowed_per_user] => 100 [description] => The Nike Academy Soccer Ball features innovative grooves designed for consistent spin when the ball is in the air. High-contrast graphics help you easily track the ball. Shown: White/Black/Volt [field_type_20] => BUTTON [field_name_20] => Amazon Link [field_label_20] => Buy on Amazon [field_data_20] => https://www.amazon.com/Nike-Unisexs-NK-Academy-Recreational/dp/B08QVQGKRG/ref=pd_ci_mcx_mh_mcx_views_0?pd_rd_w=ax2pT&content-id=amzn1.sym.352fa4e9-2aa8-47c3-b5ac-8a90ddbece20%3Aamzn1.symc.40e6a10e-cbc4-4fa5-81e3-4435ff64d03b&pf_rd_p=352fa4e9-2aa8-47c3-b5ac-8a90ddbece20&pf_rd_r=2DQ5H7EP8DT8PTH2QEV1&pd_rd_wg=xnqnh&pd_rd_r=1b4094fd-e0b0-475d-9fa1-a1995a1d07cf&pd_rd_i=B08QVQGKRG&th=1 [action] => ) [2024-07-01 23:20:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:20:57] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:20:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:20:57] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:20:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:20:57] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:21:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-01 23:21:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 ) [2024-07-01 23:21:24] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 173 [product_uuid] => 2875558b-2ef9-11ef-adc2-5254933aa95c [product_name] => Soccer Ball - Nike Nk Academy [product_type] => REWARD [product_category_id] => 3 [task_id] => [product_sp] => 500 [expires_on] => 01 May 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => 10000000 [max_claim_allowed_per_user] => 100 [description] => The Nike Academy Soccer Ball features innovative grooves designed for consistent spin when the ball is in the air. High-contrast graphics help you easily track the ball. Shown: White/Black/Volt [field_type_20] => BUTTON [field_name_20] => Amazon Link [field_label_20] => Buy on Amazon [field_data_20] => https://www.amazon.com/Nike-Unisexs-NK-Academy-Recreational/dp/B08QVQGKRG/ref=pd_ci_mcx_mh_mcx_views_0?pd_rd_w=ax2pT&content-id=amzn1.sym.352fa4e9-2aa8-47c3-b5ac-8a90ddbece20%3Aamzn1.symc.40e6a10e-cbc4-4fa5-81e3-4435ff64d03b&pf_rd_p=352fa4e9-2aa8-47c3-b5ac-8a90ddbece20&pf_rd_r=2DQ5H7EP8DT8PTH2QEV1&pd_rd_wg=xnqnh&pd_rd_r=1b4094fd-e0b0-475d-9fa1-a1995a1d07cf&pd_rd_i=B08QVQGKRG&th=1 [action] => ) [2024-07-01 23:21:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:21:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:21:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:21:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:21:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:21:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:21:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:21:28] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 173 ) [2024-07-01 23:22:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:22:16] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 173 ) [2024-07-01 23:24:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:24:18] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:24:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:24:18] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:24:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:24:18] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:24:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:24:22] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 173 ) [2024-07-01 23:30:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 23:30:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 23:31:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 23:31:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 23:31:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 23:31:04] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 23:31:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-01 23:31:16] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-01 23:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:36:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:36:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:36:27] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:38:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:38:56] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:38:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:38:56] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:38:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:38:56] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:38:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:38:57] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 173 ) [2024-07-01 23:39:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:39:13] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:39:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:39:13] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:39:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:39:13] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:39:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:39:17] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 173 ) [2024-07-01 23:39:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:39:23] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 173 ) [2024-07-01 23:40:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:40:55] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:40:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:40:55] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:40:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:40:55] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:40:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:40:56] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 308 ) [2024-07-01 23:42:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:42:47] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:42:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:42:47] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:42:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:42:47] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:42:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:42:49] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 208 ) [2024-07-01 23:42:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:42:54] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:42:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:42:54] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:42:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:42:54] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:43:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:43:03] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 128 ) [2024-07-01 23:44:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:44:09] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:44:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:44:09] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:44:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:44:09] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:44:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:44:10] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 208 ) [2024-07-01 23:44:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:44:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:44:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:44:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:44:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:44:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:44:25] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 208 [product_uuid] => 28756051-2ef9-11ef-adc2-5254933aa95c [product_name] => $10 Amazon Gift Card [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 100 [expires_on] => 01 Jul 2024 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => 100000 [max_claim_allowed_per_user] => 5 [description] => $10 Amazon gift card for first 100k users. [field_type_19] => BUTTON [field_name_19] => Amazon Link [field_label_19] => Buy on Amazon [field_data_19] => https://www.amazon.com/Amazon-eGift-Card-Logo/dp/B07PCMWTSG/ref=sr_1_1?crid=1FLH74LP48WWC&dib=eyJ2IjoiMSJ9.tuFkiRZ8vAVUqqgxVU-HWzjAkmpFzGpQai616OhS6_qVTb-Gb8BIf7Nm0_TZUD5jAtYwcfEb8rIeyvGo9aXtz_aG5l0nMJctKs34_2Cwsl95WIckdiiVdfbT0litTG4IrRvhgi7ijpCtd1c6LE5b_c3jKzpXHg8W4hYY147raz0eSiK5w467sUMoytsgxeU-EfSRT-o2oVHHC4pD57WWQXkDaT_ezBBjIxoOM8D_hiksFCmpDtdbaMB0s3J6Ezud2aUnn8ytKHZB4mjefG9KwAWqcP3CtTJlgZ7Hr9yKRJk.Pxky0cSCGJ-ozfOiq_ckDqw5rFym_QU-PofzRlJoM_Q&dib_tag=se&keywords=Amazon+gift+cards&qid=1719872985&sprefix=amazon+gift+cards%2Caps%2C227&sr=8-1 [action] => ) [2024-07-01 23:44:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:44:37] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 128 ) [2024-07-01 23:45:27] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 128 [product_uuid] => 28754245-2ef9-11ef-adc2-5254933aa95c [product_name] => Kit Kat [product_type] => REWARD [product_category_id] => 2 [task_id] => [product_sp] => 100 [expires_on] => 29 Jan 2024 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP_OR_TASK [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => Take a break with crispy, crunchy KIT KAT® Bars. From classic milk chocolate to our latest dessert-inspired flavors, there's always something delicious to unwrap [action] => ) [2024-07-01 23:45:42] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 308 [product_uuid] => 47c3dc5b-28dc-4597-8cb6-d923fec02a18 [product_name] => Soccer Ball - Nike Nk Academy [product_type] => REWARD [product_category_id] => 3 [task_id] => [product_sp] => 500 [expires_on] => 01 Jul 2024 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => The Nike Academy Soccer Ball features innovative grooves designed for consistent spin when the ball is in the air. High-contrast graphics help you easily track the ball. Shown: White/Black/Volt [field_type_22] => BUTTON [field_name_22] => Amazon Link [field_label_22] => Buy on Amazon [field_data_22] => https://www.amazon.com/Nike-Unisexs-NK-Academy-Recreational/dp/B08QVQGKRG/ref=pd_ci_mcx_mh_mcx_views_0?pd_rd_w=ax2pT&content-id=amzn1.sym.352fa4e9-2aa8-47c3-b5ac-8a90ddbece20%3Aamzn1.symc.40e6a10e-cbc4-4fa5-81e3-4435ff64d03b&pf_rd_p=352fa4e9-2aa8-47c3-b5ac-8a90ddbece20&pf_rd_r=2DQ5H7EP8DT8PTH2QEV1&pd_rd_wg=xnqnh&pd_rd_r=1b4094fd-e0b0-475d-9fa1-a1995a1d07cf&pd_rd_i=B08QVQGKRG&th=1 [action] => ) [2024-07-01 23:45:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:45:43] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:45:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:45:43] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:45:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:45:43] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:45:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:45:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 308 ) [2024-07-01 23:46:14] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 308 [product_uuid] => 47c3dc5b-28dc-4597-8cb6-d923fec02a18 [product_name] => Soccer Ball - Nike Nk Academy [product_type] => REWARD [product_category_id] => 3 [task_id] => [product_sp] => 500 [expires_on] => 01 Jul 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => The Nike Academy Soccer Ball features innovative grooves designed for consistent spin when the ball is in the air. High-contrast graphics help you easily track the ball. Shown: White/Black/Volt [field_type_22] => BUTTON [field_name_22] => Amazon Link [field_label_22] => Buy on Amazon [field_data_22] => https://www.amazon.com/Nike-Unisexs-NK-Academy-Recreational/dp/B08QVQGKRG/ref=pd_ci_mcx_mh_mcx_views_0?pd_rd_w=ax2pT&content-id=amzn1.sym.352fa4e9-2aa8-47c3-b5ac-8a90ddbece20%3Aamzn1.symc.40e6a10e-cbc4-4fa5-81e3-4435ff64d03b&pf_rd_p=352fa4e9-2aa8-47c3-b5ac-8a90ddbece20&pf_rd_r=2DQ5H7EP8DT8PTH2QEV1&pd_rd_wg=xnqnh&pd_rd_r=1b4094fd-e0b0-475d-9fa1-a1995a1d07cf&pd_rd_i=B08QVQGKRG&th=1 [action] => ) [2024-07-01 23:46:40] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 256 [product_uuid] => 28756d9f-2ef9-11ef-adc2-5254933aa95c [product_name] => Nike Men's Low Neck Top Shoe [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 1500 [expires_on] => 01 Jul 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => *Braided and synthetic fabric on the upper provides a lightweight fit and airy feel *Foam midsole is soft and comfortable *Elastic inner sleeve and booty-like structure create a custom fit *Rubber on the sole adds traction and durability [field_type_3] => BUTTON [field_name_3] => Amazon Link [field_label_3] => Buy on Amazon [field_data_3] => https://www.amazon.com/Nike-Black-Anthracite-White-Anthracite-White/dp/B078X13LM6/ref=pd_ci_mcx_mh_mcx_views_0?pd_rd_w=ZPPK6&content-id=amzn1.sym.352fa4e9-2aa8-47c3-b5ac-8a90ddbece20%3Aamzn1.symc.40e6a10e-cbc4-4fa5-81e3-4435ff64d03b&pf_rd_p=352fa4e9-2aa8-47c3-b5ac-8a90ddbece20&pf_rd_r=DRNGZ5CRE7F1B3PVF0A8&pd_rd_wg=C8nk7&pd_rd_r=995f35c5-098e-47a6-99f7-f511e762b528&pd_rd_i=B078X13LM6 [action] => ) [2024-07-01 23:46:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:46:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:46:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:46:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:46:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:46:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:46:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:46:58] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 256 ) [2024-07-01 23:47:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:47:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:47:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:47:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:47:05] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 308 ) [2024-07-01 23:47:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:47:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:47:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:47:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:47:09] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 126 ) [2024-07-01 23:47:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:10] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:47:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:10] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:47:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:10] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:47:28] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 128 [product_uuid] => 28754245-2ef9-11ef-adc2-5254933aa95c [product_name] => Kit Kat [product_type] => REWARD [product_category_id] => 2 [task_id] => [product_sp] => 100 [expires_on] => [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP_OR_TASK [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => Take a break with crispy, crunchy KIT KAT® Bars. From classic milk chocolate to our latest dessert-inspired flavors, there's always something delicious to unwrap [action] => ) [2024-07-01 23:47:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:31] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:47:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:31] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:47:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:47:31] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:47:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:47:34] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 128 ) [2024-07-01 23:48:10] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 128 [product_uuid] => 28754245-2ef9-11ef-adc2-5254933aa95c [product_name] => Kit Kat Candy Bar [product_type] => REWARD [product_category_id] => 2 [task_id] => [product_sp] => 100 [expires_on] => [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP_OR_TASK [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => Take a break with crispy, crunchy KIT KAT® Bars. From classic milk chocolate to our latest dessert-inspired flavors, there's always something delicious to unwrap [action] => ) [2024-07-01 23:48:30] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 128 [product_uuid] => 28754245-2ef9-11ef-adc2-5254933aa95c [product_name] => Kit Kat Candy Bar [product_type] => REWARD [product_category_id] => 2 [task_id] => [product_sp] => 100 [expires_on] => 01 Jul 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP_OR_TASK [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => Take a break with crispy, crunchy KIT KAT® Bars. From classic milk chocolate to our latest dessert-inspired flavors, there's always something delicious to unwrap [action] => ) [2024-07-01 23:48:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:48:38] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:48:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:48:38] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:48:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:48:38] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:48:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:48:40] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 128 ) [2024-07-01 23:48:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:48:44] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:48:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:48:44] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:48:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:48:44] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:51:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:51:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 126 ) [2024-07-01 23:55:00] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 126 [product_uuid] => 2874cee3-2ef9-11ef-adc2-5254933aa95c [product_name] => Starburst Fruit Chews [product_type] => REWARD [product_category_id] => 2 [task_id] => [product_sp] => 100 [expires_on] => 01 Jul 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => With STARBURST Original Fruit Chews Candy, there are endless ways to enjoy the individually wrapped chewy fruit flavored squares you know and love. Let the flavors of strawberry, cherry, orange, and lemon STARBURST guide you on a delicious adventure that will be Different Every Time. Unwrap and shape it, share it, squish it, stack it, and love it. [field_type_new_1] => BUTTON [field_name_new_1] => Amazon Link [field_label_new_1] => Buy on Amazon [field_data_new_1] => https://www.amazon.com/STARBURST-Original-Fruit-15-6-Ounce-FaveREDs/dp/B0B7PXVDYP/ref=sr_1_2?crid=S35BOP1FE48A&dib=eyJ2IjoiMSJ9.m5j8S6LEefGnA8ohw2yoUyVwAdvVhQOEjdvqgaE90lHzfvSBCLZEJSbm5JR6L7b1feNzOCDme0qpSkvknYPtZDIU0fqhrItvN64EFjW9Zxfyp7-0tzKcyFVKiwAA5N4sojhhDfcVTbxxcApxfpXsf9TtudGUzUgWFEGrGSzYmc8hae0UuMNgH2QZfQNfUNcXwbXMF5Pl5B0mwSypDMpicoptCc0iuxsX1dxhEA41hAHSj4vKBj9XhIwUmrOcjWwGfHoU_8cjf2V3HLOV0eV_5eX8PBIB673HUcEjTg9Q280.UYn2DG7P-gqxhhzzQLrXoybB7QgCdadZEVGngPWTlDU&dib_tag=se&keywords=STARBURST+Original+Fruit+Chews+Candy%2C+Sharing+Size%2C+15.6+oz&qid=1719878007&sprefix=starburst+original+fruit+chews+candy%2C+sharing+size%2C+15.6+oz%2Caps%2C291&sr=8-2 [action] => [productImage] => Array ( [0] => Illuminate\Http\UploadedFile Object ( [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => Starburst.JPG [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => image/jpeg [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0 [hashName:protected] => [pathName:SplFileInfo:private] => /tmp/phpOjQ5pz [fileName:SplFileInfo:private] => phpOjQ5pz ) ) ) [2024-07-01 23:55:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:55:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:55:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:55:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:55:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:55:04] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-01 23:55:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-01 23:55:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 126 ) [2024-07-01 23:59:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:59:56] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-01 23:59:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:59:56] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-01 23:59:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-06-30' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-01 23:59:56] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-02 00:00:09] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 126 [product_uuid] => 2874cee3-2ef9-11ef-adc2-5254933aa95c [product_name] => Starburst Fruit Chews [product_type] => REWARD [product_category_id] => 2 [task_id] => [product_sp] => 100 [expires_on] => 01 Jul 2024 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => With STARBURST Original Fruit Chews Candy, there are endless ways to enjoy the individually wrapped chewy fruit flavored squares you know and love. Let the flavors of strawberry, cherry, orange, and lemon STARBURST guide you on a delicious adventure that will be Different Every Time. Unwrap and shape it, share it, squish it, stack it, and love it. [field_type_23] => BUTTON [field_name_23] => Amazon Link [field_label_23] => Buy on Amazon [field_data_23] => https://www.amazon.com/STARBURST-Original-Fruit-15-6-Ounce-FaveREDs/dp/B0B7PXVDYP/ref=sr_1_2?crid=S35BOP1FE48A&dib=eyJ2IjoiMSJ9.m5j8S6LEefGnA8ohw2yoUyVwAdvVhQOEjdvqgaE90lHzfvSBCLZEJSbm5JR6L7b1feNzOCDme0qpSkvknYPtZDIU0fqhrItvN64EFjW9Zxfyp7-0tzKcyFVKiwAA5N4sojhhDfcVTbxxcApxfpXsf9TtudGUzUgWFEGrGSzYmc8hae0UuMNgH2QZfQNfUNcXwbXMF5Pl5B0mwSypDMpicoptCc0iuxsX1dxhEA41hAHSj4vKBj9XhIwUmrOcjWwGfHoU_8cjf2V3HLOV0eV_5eX8PBIB673HUcEjTg9Q280.UYn2DG7P-gqxhhzzQLrXoybB7QgCdadZEVGngPWTlDU&dib_tag=se&keywords=STARBURST+Original+Fruit+Chews+Candy%2C+Sharing+Size%2C+15.6+oz&qid=1719878007&sprefix=starburst+original+fruit+chews+candy%2C+sharing+size%2C+15.6+oz%2Caps%2C291&sr=8-2 [action] => [productImage] => Array ( [0] => Illuminate\Http\UploadedFile Object ( [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => Starburst.JPG [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => image/jpeg [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0 [hashName:protected] => [pathName:SplFileInfo:private] => /tmp/phpy8fwmI [fileName:SplFileInfo:private] => phpy8fwmI ) ) ) [2024-07-02 00:00:27] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 126 [product_uuid] => 2874cee3-2ef9-11ef-adc2-5254933aa95c [product_name] => Starburst Fruit Chews [product_type] => REWARD [product_category_id] => 2 [task_id] => [product_sp] => 100 [expires_on] => 01 Jul 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => With STARBURST Original Fruit Chews Candy, there are endless ways to enjoy the individually wrapped chewy fruit flavored squares you know and love. Let the flavors of strawberry, cherry, orange, and lemon STARBURST guide you on a delicious adventure that will be Different Every Time. Unwrap and shape it, share it, squish it, stack it, and love it. [field_type_23] => BUTTON [field_name_23] => Amazon Link [field_label_23] => Buy on Amazon [field_data_23] => https://www.amazon.com/STARBURST-Original-Fruit-15-6-Ounce-FaveREDs/dp/B0B7PXVDYP/ref=sr_1_2?crid=S35BOP1FE48A&dib=eyJ2IjoiMSJ9.m5j8S6LEefGnA8ohw2yoUyVwAdvVhQOEjdvqgaE90lHzfvSBCLZEJSbm5JR6L7b1feNzOCDme0qpSkvknYPtZDIU0fqhrItvN64EFjW9Zxfyp7-0tzKcyFVKiwAA5N4sojhhDfcVTbxxcApxfpXsf9TtudGUzUgWFEGrGSzYmc8hae0UuMNgH2QZfQNfUNcXwbXMF5Pl5B0mwSypDMpicoptCc0iuxsX1dxhEA41hAHSj4vKBj9XhIwUmrOcjWwGfHoU_8cjf2V3HLOV0eV_5eX8PBIB673HUcEjTg9Q280.UYn2DG7P-gqxhhzzQLrXoybB7QgCdadZEVGngPWTlDU&dib_tag=se&keywords=STARBURST+Original+Fruit+Chews+Candy%2C+Sharing+Size%2C+15.6+oz&qid=1719878007&sprefix=starburst+original+fruit+chews+candy%2C+sharing+size%2C+15.6+oz%2Caps%2C291&sr=8-2 [action] => ) [2024-07-02 00:00:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 00:00:36] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 126 ) [2024-07-02 00:00:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:00:37] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-02 00:00:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:00:37] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-02 00:00:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:00:37] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-02 00:01:02] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 126 [product_uuid] => 2874cee3-2ef9-11ef-adc2-5254933aa95c [product_name] => Starburst Fruit Chews [product_type] => REWARD [product_category_id] => 2 [task_id] => [product_sp] => 100 [expires_on] => 01 Jul 2030 [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => With STARBURST Original Fruit Chews Candy, there are endless ways to enjoy the individually wrapped chewy fruit flavored squares you know and love. Let the flavors of strawberry, cherry, orange, and lemon STARBURST guide you on a delicious adventure that will be Different Every Time. Unwrap and shape it, share it, squish it, stack it, and love it. [field_type_23] => BUTTON [field_name_23] => Amazon Link [field_label_23] => Buy on Amazon [field_data_23] => https://www.amazon.com/STARBURST-Original-Fruit-15-6-Ounce-FaveREDs/dp/B0B7PXVDYP/ref=sr_1_2?crid=S35BOP1FE48A&dib=eyJ2IjoiMSJ9.m5j8S6LEefGnA8ohw2yoUyVwAdvVhQOEjdvqgaE90lHzfvSBCLZEJSbm5JR6L7b1feNzOCDme0qpSkvknYPtZDIU0fqhrItvN64EFjW9Zxfyp7-0tzKcyFVKiwAA5N4sojhhDfcVTbxxcApxfpXsf9TtudGUzUgWFEGrGSzYmc8hae0UuMNgH2QZfQNfUNcXwbXMF5Pl5B0mwSypDMpicoptCc0iuxsX1dxhEA41hAHSj4vKBj9XhIwUmrOcjWwGfHoU_8cjf2V3HLOV0eV_5eX8PBIB673HUcEjTg9Q280.UYn2DG7P-gqxhhzzQLrXoybB7QgCdadZEVGngPWTlDU&dib_tag=se&keywords=STARBURST+Original+Fruit+Chews+Candy%2C+Sharing+Size%2C+15.6+oz&qid=1719878007&sprefix=starburst+original+fruit+chews+candy%2C+sharing+size%2C+15.6+oz%2Caps%2C291&sr=8-2 [action] => [productImage] => Array ( [0] => Illuminate\Http\UploadedFile Object ( [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => Starburst.JPG [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => image/jpeg [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0 [hashName:protected] => [pathName:SplFileInfo:private] => /tmp/phpvLmF2E [fileName:SplFileInfo:private] => phpvLmF2E ) ) ) [2024-07-02 00:01:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:01:19] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-02 00:01:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:01:19] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-02 00:01:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:01:19] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-02 00:01:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 00:01:45] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 126 ) [2024-07-02 00:03:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-02 00:03:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-02 00:03:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:07] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-02 00:03:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 00:03:10] local.DEBUG: Values for Sql:Array ( [0] => 126 ) [2024-07-02 00:03:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:10] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-02 00:03:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:10] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-02 00:03:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:10] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-02 00:03:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 00:03:11] local.DEBUG: Values for Sql:Array ( [0] => 126 ) [2024-07-02 00:03:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:11] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-02 00:03:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:11] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-02 00:03:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:11] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-02 00:03:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 00:03:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 126 ) [2024-07-02 00:03:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:13] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-02 00:03:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:13] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-02 00:03:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:03:13] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-02 00:05:01] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => O6AylIoVy0Ty9NDaVVkAFsRrdDGuP2A6CQeLCIih [product_id] => 125 [product_uuid] => 2874ce7e-2ef9-11ef-adc2-5254933aa95c [product_name] => Skittles Original Fruity Candy [product_type] => REWARD [product_category_id] => 2 [task_id] => [product_sp] => 100 [expires_on] => [visible_to] => GLOBAL_FOR_PARENT_AND_CHILD [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => Every pack of SKITTLES Original Fruity Candy gives you the chance to Taste the Rainbow, with a variety of fruit flavors almost too good to be true. Flavors include strawberry, lime, grape, lemon and orange. [action] => ) [2024-07-02 00:05:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 00:05:11] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 123 ) [2024-07-02 00:05:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:05:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => -1 [8] => 213 ) [2024-07-02 00:05:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:05:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 1 [8] => 213 [9] => -1 [10] => 213 ) [2024-07-02 00:05:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 00:05:12] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 213 [8] => -1 [9] => 213 ) [2024-07-02 00:05:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 00:05:14] local.DEBUG: Values for Sql:Array ( [0] => 161 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 213 [7] => 125 ) [2024-07-02 00:27:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 00:27:45] local.DEBUG: Values for Sql:Array ( [0] => 232 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 291 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94518 [11] => 291 ) [2024-07-02 02:42:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 02:42:47] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 [7] => 224 ) [2024-07-02 02:44:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 02:44:03] local.DEBUG: Values for Sql:Array ( [0] => 172 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 224 [7] => 224 ) [2024-07-02 04:43:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 04:43:09] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 04:43:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 04:43:11] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 04:49:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:49:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:49:15] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:49:15] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:49:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:49:35] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:49:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:49:44] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:49:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:49:44] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:49:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:49:48] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:49:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-02 04:49:48] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 5 ) [2024-07-02 04:49:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:49:51] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:50:03] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:50:03] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:50:05] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:50:05] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:50:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:50:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:50:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:50:07] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:50:11] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:50:11] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:50:15] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:50:15] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:51:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:51:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:51:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:51:29] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:51:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:51:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:51:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:51:33] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:51:35] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:51:35] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:51:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:51:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:52:06] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:52:06] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:52:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:52:08] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:52:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:52:08] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:52:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 04:52:11] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 256 ) [2024-07-02 04:52:11] local.DEBUG: Current Balance: 0 [2024-07-02 04:52:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:52:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:52:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:52:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:52:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:52:17] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:52:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:52:26] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:52:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:52:32] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:52:32] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:52:32] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:52:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:52:55] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:53:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:53:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:53:21] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:53:21] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:53:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:53:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:53:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:53:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:53:33] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:53:33] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:53:37] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:53:37] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:53:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:53:39] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:53:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:53:46] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:53:50] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 04:53:50] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 04:53:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:53:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:53:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:53:52] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:53:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 04:53:56] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 128 ) [2024-07-02 04:53:56] local.DEBUG: Current Balance: 0 [2024-07-02 04:54:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:54:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:54:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:54:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:54:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:54:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:54:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:54:12] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:54:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:54:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:54:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-02 04:54:13] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 4 ) [2024-07-02 04:54:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 04:54:14] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 308 ) [2024-07-02 04:54:14] local.DEBUG: Current Balance: 0 [2024-07-02 04:54:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:54:16] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:54:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:54:16] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:54:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:54:19] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:54:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-02 04:54:19] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 3 ) [2024-07-02 04:54:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:54:23] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:54:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:54:23] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:54:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:54:26] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:54:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:54:26] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:54:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:54:30] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:54:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-02 04:54:30] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 2 ) [2024-07-02 04:54:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 04:54:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 04:54:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 04:54:34] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 123 ) [2024-07-02 04:54:34] local.DEBUG: Current Balance: 0 [2024-07-02 04:54:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:54:36] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:54:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:54:36] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:54:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:54:40] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:54:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-07-02 04:54:40] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 5 ) [2024-07-02 04:54:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 04:54:43] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 87 ) [2024-07-02 04:54:43] local.DEBUG: Current Balance: 0 [2024-07-02 04:55:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 04:55:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 04:55:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 04:55:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:55:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 04:55:09] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 04:55:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 04:55:50] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 05:00:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 05:00:43] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 05:08:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 05:08:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 05:08:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 05:08:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 05:10:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 05:10:00] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 05:15:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 05:15:32] local.DEBUG: Values for Sql:Array ( [0] => 158 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 105 [7] => 105 ) [2024-07-02 05:15:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 05:15:52] local.DEBUG: Values for Sql:Array ( [0] => 158 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 105 [7] => 105 ) [2024-07-02 05:17:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 05:17:28] local.DEBUG: Values for Sql:Array ( [0] => 158 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 105 [7] => 105 ) [2024-07-02 05:36:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 05:36:59] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 06:05:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:05:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:05:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:05:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:06:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:06:49] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:11:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:11:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:11:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:11:26] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:11:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:11:26] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:11:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:11:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:11:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:11:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:11:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:11:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:11:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:11:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:11:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:11:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:11:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:11:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:12:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 06:12:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:13:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:13:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-02 06:13:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 06:13:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:13:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 06:13:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:14:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 06:14:22] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:14:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 06:14:24] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:14:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 06:14:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:14:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 06:14:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:15:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:15:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-02 06:15:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 06:15:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:16:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:16:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-02 06:16:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 06:16:47] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:16:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 06:16:49] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:19:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 06:19:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:19:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 06:19:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:23:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:23:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-02 06:23:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 06:23:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:23:56] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-07-02 06:25:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 06:25:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 06:25:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:25:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:26:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:26:17] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:26:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:26:17] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:26:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:26:17] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:26:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:26:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:31:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:31:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:31:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:31:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:31:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:31:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:31:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:31:08] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:33:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:33:38] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:33:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:33:38] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:33:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:33:38] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:33:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 06:33:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 308 ) [2024-07-02 06:33:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 06:33:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 308 ) [2024-07-02 06:34:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:34:44] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:34:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:34:44] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:34:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:34:44] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:35:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:27] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:35:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:27] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:35:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:27] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:35:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:42] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:35:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:42] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:35:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:42] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:35:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:35:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:35:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:35:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:35:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:35:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:35:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:35:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:35:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:35:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:35:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:35:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:35:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:35:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:35:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:35:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:35:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:35:59] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:36:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:36:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:36:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:36:01] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:36:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:36:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:36:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:36:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:36:22] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:37:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:37:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:37:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:37:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:37:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:37:57] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:38:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:38:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:38:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:38:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:38:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:38:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:38:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:38:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:39:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:39:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:39:16] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:39:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:39:16] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:39:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:39:26] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:39:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:39:26] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:39:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:39:45] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:40:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:40:06] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:40:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:40:18] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:40:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:40:30] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:40:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:40:30] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:40:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:40:30] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:40:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:40:32] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:41:04] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 06:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:41:04] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 06:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:41:04] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 06:41:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:41:10] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 06:44:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:44:11] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 06:44:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:44:11] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 06:44:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:44:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => -1 [17] => 87 ) [2024-07-02 06:44:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:44:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-07-02 06:44:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 06:44:13] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 [17] => -1 [18] => 87 ) [2024-07-02 06:47:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 06:47:16] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 07:01:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 07:01:01] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-07-02 07:07:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 07:07:32] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 07:07:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 07:07:32] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 07:07:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 07:07:32] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 07:09:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 07:09:05] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 07:09:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 07:09:27] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 07:09:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 07:09:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-02 07:09:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 07:09:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 07:09:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 07:09:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 308 ) [2024-07-02 07:09:36] local.DEBUG: Current Balance: 100 [2024-07-02 07:09:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 07:09:42] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-02 07:09:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 07:09:42] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 07:10:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 07:10:21] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 07:21:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 07:21:27] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => -1 [17] => 87 ) [2024-07-02 07:21:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 07:21:27] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 1 [17] => 87 [18] => -1 [19] => 87 ) [2024-07-02 07:21:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 07:21:27] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 [17] => -1 [18] => 87 ) [2024-07-02 07:31:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 07:31:59] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 08:06:57] local.DEBUG: Request Params:Array ( [_method] => PUT [_token] => dtVG3ktFjnhKv3xMP9TjlQs1bmma26mKVAUfJuM7 [product_id] => 306 [product_uuid] => ab9f4579-b52e-4bf2-adff-8db72f777f6a [product_name] => hello product [product_type] => REWARD [product_category_id] => 1 [task_id] => [product_sp] => 100 [expires_on] => [visible_to] => [group_id] => 69 [zipcode] => [requirement_for_claim] => SP [max_claim_allowed_total] => [max_claim_allowed_per_user] => [description] => Shakes [action] => ) [2024-07-02 08:35:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 08:35:43] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 08:38:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 08:38:34] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 08:57:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 08:57:13] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 08:59:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 08:59:12] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 08:59:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 08:59:51] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:00:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:00:59] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:01:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:01:03] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:01:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:01:17] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:02:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:02:32] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 09:04:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 09:04:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 09:04:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 09:04:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 09:04:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 09:04:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 09:05:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:05:01] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 09:05:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:05:37] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:06:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:06:32] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:06:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 09:06:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 09:06:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 09:06:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 09:06:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 09:06:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 09:06:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:06:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:07:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:07:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:13:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:13:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:18:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:18:09] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:23:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:23:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:23:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:23:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:33:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:33:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:40:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:40:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:42:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:42:37] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:52:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:52:20] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:54:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:54:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:55:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:55:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 09:59:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 09:59:37] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:03:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:03:37] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:11:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:11:16] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:11:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:11:46] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:13:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:13:04] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:13:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:13:48] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:14:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:14:21] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:14:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:14:51] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:16:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:16:32] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:17:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:17:26] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:19:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:19:53] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:23:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:23:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:25:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:25:36] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:27:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:27:52] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:31:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:31:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:31:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:31:31] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:31:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:31:39] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:31:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:31:44] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:32:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:32:18] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:32:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:32:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:33:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:33:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:33:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:33:23] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:33:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:33:23] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:33:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:33:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:35:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:35:52] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:36:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 10:36:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 10:45:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 10:45:42] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-02 10:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 10:49:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 10:54:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 10:54:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 10:55:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:55:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:55:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:55:35] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:55:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 10:55:54] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 10:56:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 10:56:26] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 10:56:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 10:56:33] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 10:56:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 10:56:34] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 10:58:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 10:58:24] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 10:58:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 10:58:30] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-02 10:58:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 10:58:30] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:01:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:01:35] local.DEBUG: Values for Sql:Array ( [0] => 155 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:02:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:02:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:14:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:14:07] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:14:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 11:14:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-02 11:14:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 11:14:14] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:26:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 11:26:06] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 11:30:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:30:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:30:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:30:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:33:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:33:02] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:36:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:36:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:38:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:38:49] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:41:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:41:37] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:45:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:45:37] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:46:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 11:46:22] local.DEBUG: Values for Sql:Array ( [0] => 275 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 337 [7] => 337 ) [2024-07-02 11:48:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:48:27] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:50:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` is null)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 11:50:20] local.DEBUG: Values for Sql:Array ( [0] => 275 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 337 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 94531 [11] => 337 ) [2024-07-02 11:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 11:50:23] local.DEBUG: Values for Sql:Array ( [0] => 158 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 105 [7] => 105 ) [2024-07-02 11:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 11:50:35] local.DEBUG: Values for Sql:Array ( [0] => 158 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 105 [7] => 105 ) [2024-07-02 11:50:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 11:50:45] local.DEBUG: Values for Sql:Array ( [0] => 158 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 105 [7] => 105 ) [2024-07-02 11:50:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 11:50:49] local.DEBUG: Values for Sql:Array ( [0] => 158 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 105 [7] => 105 ) [2024-07-02 11:54:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:54:10] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:55:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 11:55:18] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 11:55:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:55:23] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:56:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 11:56:35] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 11:57:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 11:57:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 12:01:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 12:01:56] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 12:02:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 12:02:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 12:03:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 12:03:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 12:03:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 12:03:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 12:03:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 12:03:38] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 12:03:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 12:03:42] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 12:03:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:03:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => 1 ) [2024-07-02 12:03:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 12:03:43] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 12:03:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 12:03:45] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 12:06:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 12:06:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 12:34:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 12:34:42] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD ) [2024-07-02 12:35:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 12:35:11] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 12:35:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:35:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 12:35:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:35:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 12:35:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:35:15] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 12:36:13] local.DEBUG: Product Image Details: Array ( [product_id] => 309 [image_name] => 18812169601719923772.jpeg ) [2024-07-02 12:36:13] local.INFO: 0.10000000 points allocated for CREATION_OF_CUSTOM_REWARDS to 30 [2024-07-02 12:36:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:36:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 12:36:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:36:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 12:36:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:36:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 12:36:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 12:36:32] local.DEBUG: Values for Sql:Array ( [0] => 309 ) [2024-07-02 12:36:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 12:36:40] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 309 ) [2024-07-02 12:36:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 12:36:44] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 309 ) [2024-07-02 12:37:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 12:37:02] local.DEBUG: Values for Sql:Array ( [0] => 309 ) [2024-07-02 12:37:03] local.DEBUG: Product Image Details: Array ( [product_id] => 309 [image_name] => 3799544511719923822.jpeg ) [2024-07-02 12:37:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:37:22] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 12:37:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:37:22] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 12:37:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:37:22] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 12:37:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 12:37:25] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 309 ) [2024-07-02 12:37:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:37:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 12:37:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:37:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 12:37:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:37:34] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 12:37:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 12:37:35] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 309 ) [2024-07-02 12:37:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 12:37:37] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 309 ) [2024-07-02 12:37:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 12:37:42] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 309 ) [2024-07-02 12:37:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:37:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 12:37:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:37:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 12:37:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:37:55] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 12:57:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 12:57:28] local.DEBUG: Values for Sql:Array ( [0] => 158 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 105 [7] => 105 ) [2024-07-02 12:58:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 12:58:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 12:58:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 12:58:03] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 12:58:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:58:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => -1 [17] => 30 ) [2024-07-02 12:58:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:58:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 1 [17] => 30 [18] => -1 [19] => 30 ) [2024-07-02 12:58:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 12:58:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 [17] => -1 [18] => 30 ) [2024-07-02 12:58:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 12:58:41] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:10:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:10:17] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:10:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:10:28] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:11:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:11:55] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:12:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:12:17] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-02 13:12:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:12:35] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-02 13:14:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:14:05] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-02 13:15:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:15:44] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-02 13:16:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:16:09] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:17:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:17:33] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:18:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:18:30] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:19:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:19:23] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:19:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:19:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:19:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:19:29] local.DEBUG: Values for Sql:Array ( [0] => 66 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:19:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:19:38] local.DEBUG: Values for Sql:Array ( [0] => 340 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:19:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:19:49] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:20:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"tempgroup112\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: tempgroup112<\\/li>\\n <li>Updated Role in Group: Child<\\/li>\\n <\\/ul>\\n <p>Download the Coins For College app to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\" style=\\"padding: 15px\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"250\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-07-02 13:20:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d82c84a0-3875-11ef-be2f-525400cbcb5e.190739a89ea","object":"email"} [2024-07-02 13:20:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:20:30] local.DEBUG: Values for Sql:Array ( [0] => 88 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:20:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:20:40] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:20:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:20:43] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 10115 [6] => Uganda [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Uganda ) [2024-07-02 13:20:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:20:55] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:21:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:21:09] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:22:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:22:05] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:22:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:22:16] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:22:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:22:28] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:22:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:22:29] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:23:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:23:13] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:25:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:25:27] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:27:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:27:58] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:31:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:31:19] local.DEBUG: Values for Sql:Array ( [0] => 16 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 30 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 00606 [11] => Algeria [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Algeria [16] => 30 ) [2024-07-02 13:33:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:33:38] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:33:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:33:53] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:33:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:33:58] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:34:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 1 [2024-07-02 13:34:04] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 87 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 10115 [11] => Uganda [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Uganda [16] => 87 ) [2024-07-02 13:34:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:34:25] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-02 13:34:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:34:36] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-02 13:34:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:34:51] local.DEBUG: Values for Sql:Array ( [0] => 67 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 00602 [6] => Peru [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Peru ) [2024-07-02 13:44:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:44:51] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:44:57] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 13:44:57] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 13:45:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:45:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:45:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 13:45:40] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan [10] => 1 ) [2024-07-02 13:45:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-07-02 13:45:40] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:46:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:46:05] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:46:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:46:17] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:46:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:46:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:46:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:46:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:46:55] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 13:46:55] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 13:46:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:46:58] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:47:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:47:22] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:47:38] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 13:47:38] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 13:47:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:47:40] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:47:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:47:54] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:47:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 13:47:59] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 210 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 13269 [11] => Afghanistan [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Afghanistan [16] => -1 [17] => 210 ) [2024-07-02 13:47:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 13:47:59] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 210 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 13269 [11] => Afghanistan [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Afghanistan [16] => 1 [17] => 210 [18] => -1 [19] => 210 ) [2024-07-02 13:47:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null or `products`.`created_by` = ?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-07-02 13:47:59] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 210 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 13269 [11] => Afghanistan [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Afghanistan [16] => 210 [17] => -1 [18] => 210 ) [2024-07-02 13:48:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 13:48:06] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 210 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 13269 [11] => Afghanistan [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Afghanistan [16] => 308 ) [2024-07-02 13:48:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-07-02 13:48:08] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT [3] => GLOBAL_FOR_PARENT_AND_CHILD [4] => SELECTED_PARENT [5] => USER [6] => 210 [7] => ZIPCODE_PARENT [8] => ZIPCODE_PARENT_AND_CHILD [9] => ZIPCODE [10] => 13269 [11] => Afghanistan [12] => COUNTRY_PARENT [13] => COUNTRY_PARENT_AND_CHILD [14] => COUNTRY [15] => Afghanistan [16] => 308 ) [2024-07-02 13:48:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:48:18] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:48:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:48:38] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:48:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:48:49] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:48:55] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 13:48:55] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 13:48:55] local.DEBUG: SQL to get Documents: select * from `uploaded_documents` where `user_id` = ? and `locker_id` = ? and `uploaded_documents`.`deleted_at` is null order by `document_id` desc [2024-07-02 13:48:55] local.DEBUG: Values for Sql:Array ( [0] => 210 [1] => 3 ) [2024-07-02 13:49:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:49:03] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:49:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:49:21] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 13:49:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 13:49:27] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] => COUNTRY [9] => Afghanistan ) [2024-07-02 14:01:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` left join `reward_visibility` as `visibility_country_single` on `visibility_country_single`.`reward_settings_id` = `visibility_country_single`.`reward_settings_id` and `visibility_country_single`.`entity_type` = 'COUNTRY_SINGLE' where (`store_product`.`store_id` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ? and `visibility_country_single`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-07-01' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 1 [2024-07-02 14:01:16] local.DEBUG: Values for Sql:Array ( [0] => 74 [1] => GLOBAL [2] => GLOBAL_FOR_PARENT_AND_CHILD [3] => ZIPCODE_PARENT_AND_CHILD [4] => ZIPCODE [5] => 13269 [6] => Afghanistan [7] => COUNTRY_PARENT_AND_CHILD [8] =>